- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for immutableGraph (0.06 sec)
-
guava/src/com/google/common/graph/ImmutableGraph.java
@Beta @Immutable(containerOf = {"N"}) public class ImmutableGraph<N> extends ForwardingGraph<N> { @SuppressWarnings("Immutable") // The backing graph must be immutable. private final BaseGraph<N> backingGraph; ImmutableGraph(BaseGraph<N> backingGraph) { this.backingGraph = backingGraph; } /** Returns an immutable copy of {@code graph}. */ public static <N> ImmutableGraph<N> copyOf(Graph<N> graph) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph); assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class); assertThat(immutableGraph).isEqualTo(mutableGraph); mutableGraph.addNode("B"); assertThat(immutableGraph).isNotEqualTo(mutableGraph); } @Test public void copyOfImmutableGraph_optimized() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
* graph.putEdgeValue("San Jose", "San Jose", 0.0); * graph.putEdgeValue("San Francisco", "San Jose", 48.4); * * // Building an immutable value graph * ImmutableValueGraph<String, Double> immutableGraph = * ValueGraphBuilder.undirected() * .allowsSelfLoops(true) * .<String, Double>immutable() * .putEdgeValue("San Francisco", "San Francisco", 0.0)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardImmutableUndirectedGraphTest.java
@Parameters(name = "allowsSelfLoops={0}") public static Collection<Object[]> parameters() { return Arrays.asList(new Object[][] {{false}, {true}}); } private final boolean allowsSelfLoops; private ImmutableGraph.Builder<Integer> graphBuilder; public StandardImmutableUndirectedGraphTest(boolean allowsSelfLoops) { this.allowsSelfLoops = allowsSelfLoops; } @Override public Graph<Integer> createGraph() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/PackageSanityTests.java
ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16); private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A = GraphBuilder.directed().<String>immutable().addNode("A").build(); private static final ImmutableGraph<String> IMMUTABLE_GRAPH_B = GraphBuilder.directed().<String>immutable().addNode("B").build();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Graph.java
* you should use the non-mutating {@link Graph} interface, or an {@link ImmutableGraph}. * * <p>You can create an immutable copy of an existing {@code Graph} using {@link * ImmutableGraph#copyOf(Graph)}: * * {@snippet : * ImmutableGraph<Integer> immutableGraph = ImmutableGraph.copyOf(graph); * } * * <p>Instances of {@link ImmutableGraph} do not implement {@link MutableGraph} (obviously!) and areRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 13.6K bytes - Viewed (0) -
guava/src/com/google/common/graph/Graph.java
* you should use the non-mutating {@link Graph} interface, or an {@link ImmutableGraph}. * * <p>You can create an immutable copy of an existing {@code Graph} using {@link * ImmutableGraph#copyOf(Graph)}: * * {@snippet : * ImmutableGraph<Integer> immutableGraph = ImmutableGraph.copyOf(graph); * } * * <p>Instances of {@link ImmutableGraph} do not implement {@link MutableGraph} (obviously!) and areRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 13.6K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ImmutableValueGraph.java
return checkNotNull(graph); } @Override public ElementOrder<N> incidentEdgeOrder() { return ElementOrder.stable(); } @Override public ImmutableGraph<N> asGraph() { return new ImmutableGraph<>(this); // safe because the view is effectively immutable } private static <N, V> ImmutableMap<N, GraphConnections<N, V>> getNodeConnections( ValueGraph<N, V> graph) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedGraphTest.java
@Parameters(name = "allowsSelfLoops={0}") public static Collection<Object[]> parameters() { return Arrays.asList(new Object[][] {{false}, {true}}); } private final boolean allowsSelfLoops; private ImmutableGraph.Builder<Integer> graphBuilder; public StandardImmutableDirectedGraphTest(boolean allowsSelfLoops) { this.allowsSelfLoops = allowsSelfLoops; } @Override public Graph<Integer> createGraph() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardImmutableUndirectedGraphTest.java
@Parameters(name = "allowsSelfLoops={0}") public static Collection<Object[]> parameters() { return Arrays.asList(new Object[][] {{false}, {true}}); } private final boolean allowsSelfLoops; private ImmutableGraph.Builder<Integer> graphBuilder; public StandardImmutableUndirectedGraphTest(boolean allowsSelfLoops) { this.allowsSelfLoops = allowsSelfLoops; } @Override public Graph<Integer> createGraph() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.9K bytes - Viewed (0)