Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 83 for Undirected (0.42 sec)

  1. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

            new Object[][] {
              {UNDIRECTED}, {DIRECTED},
            });
      }
    
      private final EdgeType edgeType;
    
      public DefaultNetworkImplementationsTest(EdgeType edgeType) {
        this.edgeType = edgeType;
      }
    
      @Before
      public void setUp() throws Exception {
        NetworkBuilder<Object, Object> builder =
            (edgeType == EdgeType.DIRECTED) ? NetworkBuilder.directed() : NetworkBuilder.undirected();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

      }
    
      @Test
      public void testAdjacentNode_nodeNotIncident() {
        ImmutableList<MutableNetwork<Integer, String>> testNetworks =
            ImmutableList.of(
                NetworkBuilder.directed().<Integer, String>build(),
                NetworkBuilder.undirected().<Integer, String>build());
        for (MutableNetwork<Integer, String> network : testNetworks) {
          network.addEdge(1, 2, "1-2");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      @Test
      public void copyOf_incidentEdgeOrder() {
        ImmutableGraph<Object> graph = ImmutableGraph.copyOf(GraphBuilder.undirected().build());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      @Test
      public void copyOf_incidentEdgeOrder() {
        ImmutableGraph<Object> graph = ImmutableGraph.copyOf(GraphBuilder.undirected().build());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/MutableGraph.java

       * endpoints}) if one is not already present.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered and the added edge will be
       * directed; if it is undirected, the added edge will be undirected.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
       * <p>If either or both endpoints are not already present in this graph, this method will silently
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/EndpointPair.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * An immutable pair representing the two endpoints of an edge in a graph. The {@link EndpointPair}
     * of a directed edge is an ordered pair of nodes ({@link #source()} and {@link #target()}). The
     * {@link EndpointPair} of an undirected edge is an unordered pair of nodes ({@link #nodeU()} and
     * {@link #nodeV()}).
     *
     * <p>The edge is a self-loop if, and only if, the two endpoints are equal.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

         * that edge to {@code value} (overwriting the existing value, if any).
         *
         * <p>If the graph is directed, the resultant edge will be directed; otherwise, it will be
         * undirected.
         *
         * <p>If this graph is directed, {@code endpoints} must be ordered.
         *
         * <p>Values do not have to be unique. However, values must be non-null.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/MutableValueGraph.java

       * that edge to {@code value} (overwriting the existing value, if any).
       *
       * <p>If the graph is directed, the resultant edge will be directed; otherwise, it will be
       * undirected.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
       * <p>Values do not have to be unique. However, values must be non-null.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

    import java.util.Collection;
    import org.jspecify.annotations.NullUnmarked;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    
    /** Tests for an undirected {@link StandardMutableGraph}. */
    @AndroidIncompatible
    @RunWith(Parameterized.class)
    @NullUnmarked
    public class StandardMutableUndirectedGraphTest extends AbstractStandardUndirectedGraphTest {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/ElementOrderTest.java

      // Node order tests
    
      @Test
      public void nodeOrder_none() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(unordered()).build();
    
        assertThat(graph.nodeOrder()).isEqualTo(unordered());
      }
    
      @Test
      public void nodeOrder_insertion() {
        MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(insertion()).build();
    
        addNodes(graph);
    
        assertThat(graph.nodeOrder()).isEqualTo(insertion());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top