- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for asGraph (0.13 seconds)
-
android/guava-tests/test/com/google/common/graph/ValueGraphTest.java
Graph<Integer> asGraph = graph.asGraph(); AbstractGraphTest.validateGraph(asGraph); assertThat(graph.nodes()).isEqualTo(asGraph.nodes()); assertThat(graph.edges()).isEqualTo(asGraph.edges()); assertThat(graph.nodeOrder()).isEqualTo(asGraph.nodeOrder()); assertThat(graph.incidentEdgeOrder()).isEqualTo(asGraph.incidentEdgeOrder());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 17.9K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractBaseGraph.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 11.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/ValueGraphTest.java
Graph<Integer> asGraph = graph.asGraph(); AbstractGraphTest.validateGraph(asGraph); assertThat(graph.nodes()).isEqualTo(asGraph.nodes()); assertThat(graph.edges()).isEqualTo(asGraph.edges()); assertThat(graph.nodeOrder()).isEqualTo(asGraph.nodeOrder()); assertThat(graph.incidentEdgeOrder()).isEqualTo(asGraph.incidentEdgeOrder());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 20.5K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
* @since 20.0 */ public abstract class AbstractNetwork<N, E> implements Network<N, E> { /** Constructor for use by subclasses. */ public AbstractNetwork() {} @Override public Graph<N> asGraph() { return new AbstractGraph<N>() { @Override public Set<N> nodes() { return AbstractNetwork.this.nodes(); } @Override public Set<EndpointPair<N>> edges() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 10K bytes - Click Count (0) -
android/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 {@linkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 15K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/Network.java
* treated as if collapsed into a single edge. For example, the {@link #degree(Object)} of a node * in the {@link Graph} view may be less than the degree of the same node in this {@link Network}. */ Graph<N> asGraph(); // // Network properties // /** * Returns true if this network allows parallel edges. Attempting to add a parallel edge to aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 17.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
EndpointPair<Integer> endpointsN1N2 = EndpointPair.unordered(N1, N2); EndpointPair<Integer> endpointsN2N1 = EndpointPair.unordered(N2, N1); assertThat(network.asGraph().edges()).doesNotContain(endpointsN1N2); assertThat(network.asGraph().edges()).doesNotContain(endpointsN2N1); } @Test public void edgesConnecting_orderMismatch() { addEdge(N1, N2, E12); IllegalArgumentException e =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 21.3K bytes - Click Count (0) -
android/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 =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 18.6K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/Graphs.java
if (!network.isDirected() && network.allowsParallelEdges() && network.edges().size() > network.asGraph().edges().size()) { return true; } return hasCycle(network.asGraph()); } /** * Performs a traversal of the nodes reachable from {@code startNode}. If we ever reach a node
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 24.4K bytes - Click Count (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 =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 19K bytes - Click Count (0)