- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for GraphBuilder (0.16 sec)
-
android/guava/src/com/google/common/graph/GraphBuilder.java
@DoNotMock @ElementTypesAreNonnullByDefault public final class GraphBuilder<N> extends AbstractGraphBuilder<N> { /** Creates a new instance with the specified edge directionality. */ private GraphBuilder(boolean directed) { super(directed); } /** Returns a {@link GraphBuilder} for building directed graphs. */ public static GraphBuilder<Object> directed() { return new GraphBuilder<>(true); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Jun 03 01:21:31 GMT 2022 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
} /** * Tests that the ImmutableGraph.Builder doesn't change when the creating GraphBuilder changes. */ @Test @SuppressWarnings("CheckReturnValue") public void immutableGraphBuilder_copiesGraphBuilder() { GraphBuilder<String> graphBuilder = GraphBuilder.directed() .allowsSelfLoops(true) .<String>nodeOrder(ElementOrder.<String>natural());
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) -
android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedGraphTest.java
private ImmutableGraph.Builder<Integer> graphBuilder; public StandardImmutableDirectedGraphTest(boolean allowsSelfLoops) { this.allowsSelfLoops = allowsSelfLoops; } @Override public Graph<Integer> createGraph() { graphBuilder = GraphBuilder.directed().allowsSelfLoops(allowsSelfLoops).immutable(); return graphBuilder.build(); } @Override final void addNode(Integer n) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Mar 10 17:54:18 GMT 2020 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardImmutableUndirectedGraphTest.java
private ImmutableGraph.Builder<Integer> graphBuilder; public StandardImmutableUndirectedGraphTest(boolean allowsSelfLoops) { this.allowsSelfLoops = allowsSelfLoops; } @Override public Graph<Integer> createGraph() { graphBuilder = GraphBuilder.undirected().allowsSelfLoops(allowsSelfLoops).immutable(); return graphBuilder.build(); } @Override final void addNode(Integer n) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Mar 10 17:54:18 GMT 2020 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphMutationTest.java
@Test public void directedGraph() { testGraphMutation(GraphBuilder.directed()); } @Test public void undirectedGraph() { testGraphMutation(GraphBuilder.undirected()); } private static void testGraphMutation(GraphBuilder<? super Integer> graphBuilder) { Random gen = new Random(42); // Fixed seed so test results are deterministic.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Aug 18 16:17:46 GMT 2017 - 4.2K bytes - Viewed (0) -
android/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);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 8.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java
} private static MutableGraph<Integer> createGraph(EdgeType edgeType) { switch (edgeType) { case UNDIRECTED: return GraphBuilder.undirected().allowsSelfLoops(true).build(); case DIRECTED: return GraphBuilder.directed().allowsSelfLoops(true).build(); default: throw new IllegalStateException("Unexpected edge type: " + edgeType); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jun 22 19:09:27 GMT 2017 - 4.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/PackageSanityTests.java
private static final AbstractGraphBuilder<?> GRAPH_BUILDER_A = GraphBuilder.directed().expectedNodeCount(10); private static final AbstractGraphBuilder<?> GRAPH_BUILDER_B = ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16); private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A = GraphBuilder.directed().<String>immutable().addNode("A").build();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 09 19:24:25 GMT 2023 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
public void immutableValueGraphBuilder_copiesGraphBuilder() { ValueGraphBuilder<String, Object> graphBuilder = ValueGraphBuilder.directed() .allowsSelfLoops(true) .<String>nodeOrder(ElementOrder.<String>natural()); ImmutableValueGraph.Builder<String, Integer> immutableValueGraphBuilder = graphBuilder.<String, Integer>immutable();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jan 09 20:24:43 GMT 2020 - 6.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/PackageSanityTests.java
private static final AbstractGraphBuilder<?> GRAPH_BUILDER_A = GraphBuilder.directed().expectedNodeCount(10); private static final AbstractGraphBuilder<?> GRAPH_BUILDER_B = ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16); private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A = GraphBuilder.directed().<String>immutable().addNode("A").build();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 09 19:24:25 GMT 2023 - 3.2K bytes - Viewed (0)