Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for AddNode (0.22 sec)

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

        return GraphBuilder.directed()
            .allowsSelfLoops(allowsSelfLoops)
            .incidentEdgeOrder(incidentEdgeOrder)
            .build();
      }
    
      @Override
      final void addNode(Integer n) {
        graphAsMutableGraph.addNode(n);
      }
    
      @Override
      final void putEdge(Integer n1, Integer n2) {
        graphAsMutableGraph.putEdge(n1, n2);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        mutableNetwork.addNode("A");
        ImmutableNetwork<String, Integer> immutableNetwork = ImmutableNetwork.copyOf(mutableNetwork);
    
        assertThat(immutableNetwork.asGraph()).isInstanceOf(ImmutableGraph.class);
        assertThat(immutableNetwork).isNotInstanceOf(MutableNetwork.class);
        assertThat(immutableNetwork).isEqualTo(mutableNetwork);
    
        mutableNetwork.addNode("B");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/GraphMutationTest.java

          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty();
          AbstractGraphTest.validateGraph(graph);
    
          while (graph.nodes().size() < NUM_NODES) {
            graph.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(graph.nodes());
          while (graph.edges().size() < NUM_EDGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

    @RunWith(JUnit4.class)
    public class ImmutableValueGraphTest {
    
      @Test
      public void immutableValueGraph() {
        MutableValueGraph<String, Integer> mutableValueGraph = ValueGraphBuilder.directed().build();
        mutableValueGraph.addNode("A");
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph.asGraph()).isInstanceOf(ImmutableGraph.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java

            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    
      @Override
      void addNode(Integer n) {
        networkAsMutableNetwork.addNode(n);
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkAsMutableNetwork.addEdge(n1, n2, e);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedNetworkTest.java

            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    
      @Override
      void addNode(Integer n) {
        networkAsMutableNetwork.addNode(n);
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkAsMutableNetwork.addEdge(n1, n2, e);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java

            .allowsParallelEdges(allowsParallelEdges)
            .nodeOrder(nodeOrder)
            .edgeOrder(edgeOrder)
            .build();
      }
    
      @Override
      void addNode(Integer n) {
        networkAsMutableNetwork.addNode(n);
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkAsMutableNetwork.addEdge(n1, n2, e);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

                .nodeOrder(nodeOrder)
                .edgeOrder(edgeOrder)
                .immutable();
    
        return networkBuilder.build();
      }
    
      @Override
      void addNode(Integer n) {
        networkBuilder.addNode(n);
        network = networkBuilder.build();
      }
    
      @Override
      void addEdge(Integer n1, Integer n2, String e) {
        networkBuilder.addEdge(n1, n2, e);
        network = networkBuilder.build();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      @Test
      public void equivalent_nodeSetsDiffer() {
        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      @Test
      public void equivalent_nodeSetsDiffer() {
        graph.addNode(N1);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.addNode(N2);
    
        assertThat(graph).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ due to edge type.
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top