- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for putEdgeValue (0.1 sec)
-
android/guava/src/com/google/common/graph/ImmutableValueGraph.java
* ValueGraphBuilder.undirected() * .<City, Distance>immutable() * .putEdgeValue(PARIS, BERLIN, kilometers(1060)) * .putEdgeValue(PARIS, BRUSSELS, kilometers(317)) * .putEdgeValue(BERLIN, BRUSSELS, kilometers(764)) * .addNode(REYKJAVIK) * .build(); * }</pre> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 01 16:30:37 UTC 2022 - 7.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
ImmutableValueGraph<Integer, String> graph = ValueGraphBuilder.directed() .<Integer, String>immutable() .putEdgeValue(2, 1, "2-1") .putEdgeValue(2, 3, "2-3") .putEdgeValue(1, 2, "1-2") .build(); assertThat(graph.incidentEdges(2)) .containsExactly(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jan 09 20:24:43 UTC 2020 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
* // Building a mutable value graph * MutableValueGraph<String, Double> graph = * ValueGraphBuilder.undirected().allowsSelfLoops(true).build(); * graph.putEdgeValue("San Francisco", "San Francisco", 0.0); * 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 =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 03 01:21:31 UTC 2022 - 8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
ImmutableValueGraph<Integer, String> graph = ValueGraphBuilder.directed() .<Integer, String>immutable() .putEdgeValue(2, 1, "2-1") .putEdgeValue(2, 3, "2-3") .putEdgeValue(1, 2, "1-2") .build(); assertThat(graph.incidentEdges(2)) .containsExactly(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jan 09 20:24:43 UTC 2020 - 6.4K bytes - Viewed (0) -
guava/src/com/google/common/graph/ImmutableValueGraph.java
* ValueGraphBuilder.undirected() * .<City, Distance>immutable() * .putEdgeValue(PARIS, BERLIN, kilometers(1060)) * .putEdgeValue(PARIS, BRUSSELS, kilometers(317)) * .putEdgeValue(BERLIN, BRUSSELS, kilometers(764)) * .addNode(REYKJAVIK) * .build(); * }</pre> *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 01 16:30:37 UTC 2022 - 7.7K bytes - Viewed (0) -
guava/src/com/google/common/graph/MutableValueGraph.java
* @throws IllegalArgumentException if the introduction of the edge would violate {@link * #allowsSelfLoops()} */ @CanIgnoreReturnValue @CheckForNull V putEdgeValue(N nodeU, N nodeV, V value); /** * Adds an edge connecting {@code endpoints} if one is not already present, and sets a value for * that edge to {@code value} (overwriting the existing value, if any). *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 4.4K bytes - Viewed (0) -
guava/src/com/google/common/graph/StandardMutableGraph.java
} @Override public boolean addNode(N node) { return backingValueGraph.addNode(node); } @Override public boolean putEdge(N nodeU, N nodeV) { return backingValueGraph.putEdgeValue(nodeU, nodeV, Presence.EDGE_EXISTS) == null; } @Override public boolean putEdge(EndpointPair<N> endpoints) { validateEndpoints(endpoints); return putEdge(endpoints.nodeU(), endpoints.nodeV()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 2.4K bytes - Viewed (0)