Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 187 for edges (0.22 sec)

  1. android/guava/src/com/google/common/graph/AbstractGraphBuilder.java

      Optional<Integer> expectedNodeCount = Optional.absent();
    
      /**
       * Creates a new instance with the specified edge directionality.
       *
       * @param directed if true, creates an instance for graphs whose edges are each directed; if
       *     false, creates an instance for graphs whose edges are each undirected.
       */
      AbstractGraphBuilder(boolean directed) {
        this.directed = directed;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(graph.nodes()).containsExactly("A");
        assertThat(graph.edges()).isEmpty();
      }
    
      @Test
      public void immutableGraphBuilder_putEdgeFromNodes() {
        ImmutableGraph<String> graph =
            GraphBuilder.directed().<String>immutable().putEdge("A", "B").build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      // Ideally, the ordering in test should never be updated.
      @Test
      public void stableIncidentEdgeOrder_edges_returnsInStableOrder() {
        assume().that(graph.incidentEdgeOrder().type()).isEqualTo(ElementOrder.Type.STABLE);
    
        populateTShapedGraph();
    
        assertThat(graph.edges())
            .containsExactly(
                EndpointPair.unordered(1, 2),
                EndpointPair.unordered(1, 4),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ForwardingNetwork.java

      public Set<E> outEdges(N node) {
        return delegate().outEdges(node);
      }
    
      @Override
      public EndpointPair<N> incidentNodes(E edge) {
        return delegate().incidentNodes(edge);
      }
    
      @Override
      public Set<E> adjacentEdges(E edge) {
        return delegate().adjacentEdges(edge);
      }
    
      @Override
      public int degree(N node) {
        return delegate().degree(node);
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/SuccessorsFunction.java

     */
    @Beta
    @DoNotMock("Implement with a lambda, or use GraphBuilder to build a Graph with the desired edges")
    @ElementTypesAreNonnullByDefault
    public interface SuccessorsFunction<N> {
    
      /**
       * Returns all nodes in this graph adjacent to {@code node} which can be reached by traversing
       * {@code node}'s outgoing edges in the direction (if any) of the edge.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

          }
        };
      }
    
      @Override
      @CheckForNull
      public N removeInEdge(E edge, boolean isSelfLoop) {
        if (!isSelfLoop) {
          return removeOutEdge(edge);
        }
        return null;
      }
    
      @Override
      public N removeOutEdge(E edge) {
        N node = super.removeOutEdge(edge);
        Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
        if (adjacentNodes != null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 3.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        assertThat(network.edges()).isEmpty();
      }
    
      @Test
      public void immutableNetworkBuilder_putEdgeFromNodes() {
        ImmutableNetwork<String, Integer> network =
            NetworkBuilder.directed().<String, Integer>immutable().addEdge("A", "B", 10).build();
    
        assertThat(network.nodes()).containsExactly("A", "B");
        assertThat(network.edges()).containsExactly(10);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        ImmutableValueGraph<String, Integer> graph =
            ValueGraphBuilder.directed().<String, Integer>immutable().addNode("A").build();
    
        assertThat(graph.nodes()).containsExactly("A");
        assertThat(graph.edges()).isEmpty();
      }
    
      @Test
      public void immutableValueGraphBuilder_putEdgeFromNodes() {
        ImmutableValueGraph<String, Integer> graph =
            ValueGraphBuilder.directed()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 6.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(network.edgeOrder())
            .isEqualTo(ElementOrder.sorted(Ordering.<String>natural().reverse()));
        assertThat(network.edges()).containsExactly("p", "i", "e").inOrder();
        assertThat(network.nodeOrder()).isEqualTo(ElementOrder.insertion()); // default
      }
    
      // Combined node and edge order tests
    
      @Test
      public void nodeOrderUnorderedAndEdgesSorted() {
        MutableNetwork<Integer, String> network =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      // Ideally, the ordering in test should never be updated.
      @Test
      public void stableIncidentEdgeOrder_edges_returnsInStableOrder() {
        assume().that(graph.incidentEdgeOrder().type()).isEqualTo(ElementOrder.Type.STABLE);
    
        populateStarShapedGraph();
    
        assertThat(graph.edges())
            .containsExactly(
                EndpointPair.ordered(2, 1),
                EndpointPair.ordered(1, 4),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top