- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 56 for addNodes (0.05 seconds)
-
guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.7K bytes - Click Count (0) -
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(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java
assertThat(hasCycle(undirectedGraph)).isFalse(); } @Test public void hasCycle_isolatedNodes() { for (MutableGraph<Integer> graph : graphsToTest) { graph.addNode(1); graph.addNode(2); } assertThat(hasCycle(directedGraph)).isFalse(); assertThat(hasCycle(undirectedGraph)).isFalse(); } @Test public void hasCycle_oneEdge() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/MutableNetwork.java
* <p><b>Nodes must be unique</b>, just as {@code Map} keys must be. They must also be non-null. * * @return {@code true} if the network was modified as a result of this call */ @CanIgnoreReturnValue boolean addNode(N node); /** * Adds {@code edge} connecting {@code nodeU} to {@code nodeV}. * * <p>If the graph is directed, {@code edge} will be directed in this graph; otherwise, it will be * undirected. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/NetworkMutationTest.java
assertThat(network.nodes()).isEmpty(); assertThat(network.edges()).isEmpty(); AbstractNetworkTest.validateNetwork(network); while (network.nodes().size() < NUM_NODES) { network.addNode(gen.nextInt(NODE_POOL_SIZE)); } ArrayList<Integer> nodeList = new ArrayList<>(network.nodes()); for (int i = 0; i < NUM_EDGES; ++i) { // Parallel edges are allowed, so this should always succeed.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.6K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/StandardMutableValueGraph.java
} @Override public ElementOrder<N> incidentEdgeOrder() { return incidentEdgeOrder; } @Override @CanIgnoreReturnValue public boolean addNode(N node) { checkNotNull(node, "node"); if (containsNode(node)) { return false; } addNodeInternal(node); return true; } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java
} throw new IllegalStateException("Unexpected edge type: " + edgeType); } @Test public void equivalent_nodeSetsDiffer() { network.addNode(N1); MutableNetwork<Integer, String> g2 = createNetwork(edgeType); g2.addNode(N2); assertThat(network).isNotEqualTo(g2); } // Node sets are the same, but edge sets differ. @Test public void equivalent_edgeSetsDiffer() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 5.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java
} throw new IllegalStateException("Unexpected edge type: " + edgeType); } @Test public void equivalent_nodeSetsDiffer() { network.addNode(N1); MutableNetwork<Integer, String> g2 = createNetwork(edgeType); g2.addNode(N2); assertThat(network).isNotEqualTo(g2); } // Node sets are the same, but edge sets differ. @Test public void equivalent_edgeSetsDiffer() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 5.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/GraphsTest.java
directedGraph.putEdge(N2, N3); directedGraph.addNode(N4); // the above graph is its own transitive closure MutableGraph<Integer> expectedClosure = GraphBuilder.directed().allowsSelfLoops(true).build(); expectedClosure.putEdge(N1, N2); expectedClosure.putEdge(N1, N3); expectedClosure.putEdge(N2, N3); expectedClosure.addNode(N4);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jan 09 23:46:06 GMT 2026 - 30.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
* element, or at the end of the list if {@code nextSibling} is null. Note: if {@code nextSibling} * is specified, it MUST be for a node for the same {@code key}! */ @CanIgnoreReturnValue private Node<K, V> addNode( @ParametricNullness K key, @ParametricNullness V value, @Nullable Node<K, V> nextSibling) { Node<K, V> node = new Node<>(key, value); if (head == null) { // empty list head = tail = node;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 26.6K bytes - Click Count (0)