- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for asGraph (0.05 sec)
-
guava/src/com/google/common/graph/AbstractValueGraph.java
* @since 20.0 */ @Beta @ElementTypesAreNonnullByDefault public abstract class AbstractValueGraph<N, V> extends AbstractBaseGraph<N> implements ValueGraph<N, V> { @Override public Graph<N> asGraph() { return new AbstractGraph<N>() { @Override public Set<N> nodes() { return AbstractValueGraph.this.nodes(); } @Override public Set<EndpointPair<N>> edges() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 13:59:28 UTC 2023 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java
mutableNetwork.addNode("A"); ImmutableNetwork<String, Integer> immutableNetwork = ImmutableNetwork.copyOf(mutableNetwork); assertThat(immutableNetwork.asGraph()).isInstanceOf(ImmutableGraph.class); assertThat(immutableNetwork).isNotInstanceOf(MutableNetwork.class); assertThat(immutableNetwork).isEqualTo(mutableNetwork); mutableNetwork.addNode("B");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sun May 05 18:02:35 UTC 2019 - 5.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
mutableValueGraph.addNode("A"); ImmutableValueGraph<String, Integer> immutableValueGraph = ImmutableValueGraph.copyOf(mutableValueGraph); assertThat(immutableValueGraph.asGraph()).isInstanceOf(ImmutableGraph.class); assertThat(immutableValueGraph).isNotInstanceOf(MutableValueGraph.class); assertThat(immutableValueGraph).isEqualTo(mutableValueGraph); mutableValueGraph.addNode("B");
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/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 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/AbstractStandardUndirectedNetworkTest.java
} @Test public void edges_containsOrderMismatch() { addEdge(N1, N2, E12); assertThat(network.asGraph().edges()).doesNotContain(ENDPOINTS_N2N1); assertThat(network.asGraph().edges()).doesNotContain(ENDPOINTS_N1N2); } @Test public void edgesConnecting_orderMismatch() { addEdge(N1, N2, E12); IllegalArgumentException e =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 18.9K bytes - Viewed (0) -
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 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/GraphsTest.java
assertThat(transpose).isEqualTo(expectedTranspose); assertThat(transpose(transpose)).isSameInstanceAs(directedGraph); AbstractGraphTest.validateGraph(transpose.asGraph()); assertThat(transpose.edgeValueOrDefault(N1, N2, null)).isNull(); for (Integer node : directedGraph.nodes()) { assertThat(directedGraph.inDegree(node)).isSameInstanceAs(transpose.outDegree(node));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 24.7K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
* @param <E> Edge parameter type * @since 20.0 */ @Beta @ElementTypesAreNonnullByDefault public abstract class AbstractNetwork<N, E> implements Network<N, E> { @Override public Graph<N> asGraph() { return new AbstractGraph<N>() { @Override public Set<N> nodes() { return AbstractNetwork.this.nodes(); } @Override public Set<EndpointPair<N>> edges() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Mar 13 18:17:09 UTC 2024 - 10.1K bytes - Viewed (0) -
guava/src/com/google/common/graph/AbstractNetwork.java
* @param <E> Edge parameter type * @since 20.0 */ @Beta @ElementTypesAreNonnullByDefault public abstract class AbstractNetwork<N, E> implements Network<N, E> { @Override public Graph<N> asGraph() { return new AbstractGraph<N>() { @Override public Set<N> nodes() { return AbstractNetwork.this.nodes(); } @Override public Set<EndpointPair<N>> edges() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Mar 13 18:17:09 UTC 2024 - 10.4K bytes - Viewed (0) -
guava/src/com/google/common/graph/ValueGraph.java
/** * Returns a live view of this graph as a {@link Graph}. The resulting {@link Graph} will have an * edge connecting node A to node B if this {@link ValueGraph} has an edge connecting A to B. */ Graph<N> asGraph(); // // ValueGraph properties // /** * Returns true if the edges in this graph are directed. Directed edges connect a {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 10 15:41:27 UTC 2024 - 16K bytes - Viewed (0)