- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for immutableGraph (1.38 sec)
-
android/guava/src/com/google/common/graph/GraphBuilder.java
* graph.putEdge("bread", "bread"); * graph.putEdge("chocolate", "peanut butter"); * graph.putEdge("peanut butter", "jelly"); * * // Building an immutable graph * ImmutableGraph<String> immutableGraph = * GraphBuilder.undirected() * .allowsSelfLoops(true) * .<String>immutable() * .putEdge("bread", "bread") * .putEdge("chocolate", "peanut butter")
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/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Graphs.java
* * @since 33.1.0 (present with return type {@code Graph} since 20.0) */ // TODO(b/31438252): Consider potential optimizations for this algorithm. public static <N> ImmutableGraph<N> transitiveClosure(Graph<N> graph) { ImmutableGraph.Builder<N> transitiveClosure = GraphBuilder.from(graph).allowsSelfLoops(true).<N>immutable(); // Every node is, at a minimum, reachable from itself. Since the resulting transitive closure
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
* * @since 33.1.0 (present with return type {@code Graph} since 20.0) */ // TODO(b/31438252): Consider potential optimizations for this algorithm. public static <N> ImmutableGraph<N> transitiveClosure(Graph<N> graph) { ImmutableGraph.Builder<N> transitiveClosure = GraphBuilder.from(graph).allowsSelfLoops(true).<N>immutable(); // Every node is, at a minimum, reachable from itself. Since the resulting transitive closure
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/src/com/google/common/graph/Network.java
* ImmutableNetwork}. * * <p>You can create an immutable copy of an existing {@code Network} using {@link * ImmutableNetwork#copyOf(Network)}: * * {@snippet : * ImmutableNetwork<Integer, MyEdge> immutableGraph = ImmutableNetwork.copyOf(network); * } * * <p>Instances of {@link ImmutableNetwork} do not implement {@link MutableNetwork} (obviously!) and * are contractually guaranteed to be unmodifiable and thread-safe. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:03:02 UTC 2025 - 22.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/TraverserTest.java
return Ordering.natural().immutableSortedCopy(graphMap.get(node)); } }; } private static ImmutableGraph<Character> createSingleRootGraph() { MutableGraph<Character> graph = GraphBuilder.directed().build(); graph.addNode('a'); return ImmutableGraph.copyOf(graph); } private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
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
return Ordering.natural().immutableSortedCopy(graphMap.get(node)); } }; } private static ImmutableGraph<Character> createSingleRootGraph() { MutableGraph<Character> graph = GraphBuilder.directed().build(); graph.addNode('a'); return ImmutableGraph.copyOf(graph); } private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 47.5K bytes - Viewed (0)