- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for MutableGraph (0.05 sec)
-
android/guava/src/com/google/common/graph/GraphBuilder.java
GraphBuilder<N1> newBuilder = cast(); newBuilder.incidentEdgeOrder = checkNotNull(incidentEdgeOrder); return newBuilder; } /** Returns an empty {@link MutableGraph} with the properties of this {@link GraphBuilder}. */ public <N1 extends N> MutableGraph<N1> build() { return new StandardMutableGraph<>(this); } GraphBuilder<N> copy() { GraphBuilder<N> newBuilder = new GraphBuilder<>(directed);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java
boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) { this.allowsSelfLoops = allowsSelfLoops; this.incidentEdgeOrder = incidentEdgeOrder; } @Override public MutableGraph<Integer> createGraph() { return GraphBuilder.undirected() .allowsSelfLoops(allowsSelfLoops) .incidentEdgeOrder(incidentEdgeOrder) .build(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/GraphMutationTest.java
Random gen = new Random(42); // Fixed seed so test results are deterministic. for (int trial = 0; trial < NUM_TRIALS; ++trial) { MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build(); assertThat(graph.nodes()).isEmpty(); assertThat(graph.edges()).isEmpty(); AbstractGraphTest.validateGraph(graph);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Graphs.java
* * @throws IllegalArgumentException if any element in {@code nodes} is not a node in the graph */ public static <N> MutableGraph<N> inducedSubgraph(Graph<N> graph, Iterable<? extends N> nodes) { MutableGraph<N> subgraph = (nodes instanceof Collection) ? GraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Aug 01 00:26:14 UTC 2025 - 22.7K bytes - Viewed (0) -
guava/src/com/google/common/graph/Graphs.java
* * @throws IllegalArgumentException if any element in {@code nodes} is not a node in the graph */ public static <N> MutableGraph<N> inducedSubgraph(Graph<N> graph, Iterable<? extends N> nodes) { MutableGraph<N> subgraph = (nodes instanceof Collection) ? GraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Aug 01 00:26:14 UTC 2025 - 23.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java
boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) { this.allowsSelfLoops = allowsSelfLoops; this.incidentEdgeOrder = incidentEdgeOrder; } @Override public MutableGraph<Integer> createGraph() { return GraphBuilder.undirected() .allowsSelfLoops(allowsSelfLoops) .incidentEdgeOrder(incidentEdgeOrder) .build(); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphMutationTest.java
Random gen = new Random(42); // Fixed seed so test results are deterministic. for (int trial = 0; trial < NUM_TRIALS; ++trial) { MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build(); assertThat(graph.nodes()).isEmpty(); assertThat(graph.edges()).isEmpty(); AbstractGraphTest.validateGraph(graph);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/TraverserTest.java
public void forTree_acceptsDirectedGraph() throws Exception { MutableGraph<String> graph = GraphBuilder.directed().build(); graph.putEdge("a", "b"); Traverser.forTree(graph); // Does not throw } @Test public void forTree_withUndirectedGraph_throws() throws Exception { MutableGraph<String> graph = GraphBuilder.undirected().build(); graph.putEdge("a", "b");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 47.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/TraverserTest.java
public void forTree_acceptsDirectedGraph() throws Exception { MutableGraph<String> graph = GraphBuilder.directed().build(); graph.putEdge("a", "b"); Traverser.forTree(graph); // Does not throw } @Test public void forTree_withUndirectedGraph_throws() throws Exception { MutableGraph<String> graph = GraphBuilder.undirected().build(); graph.putEdge("a", "b");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 47.5K bytes - Viewed (0)