- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 37 for EndpointPair (0.19 sec)
-
android/guava-tests/test/com/google/common/graph/GraphMutationTest.java
while (graph.edges().size() < NUM_EDGES) { graph.putEdge(getRandomElement(nodeList, gen), getRandomElement(nodeList, gen)); } ArrayList<EndpointPair<Integer>> edgeList = new ArrayList<>(graph.edges()); assertThat(graph.nodes()).hasSize(NUM_NODES); assertThat(graph.edges()).hasSize(NUM_EDGES); AbstractGraphTest.validateGraph(graph);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Aug 18 16:17:46 GMT 2017 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
.putEdgeValue(2, 3, "2-3") .putEdgeValue(1, 2, "1-2") .build(); assertThat(graph.incidentEdges(2)) .containsExactly( EndpointPair.ordered(2, 1), EndpointPair.ordered(2, 3), EndpointPair.ordered(1, 2)) .inOrder(); } @Test public void immutableValueGraphBuilder_incidentEdgeOrder_stable() { ImmutableValueGraph<Integer, String> graph =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Jan 09 20:24:43 GMT 2020 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/StandardMutableNetwork.java
checkNotNull(nodeU, "nodeU"); checkNotNull(nodeV, "nodeV"); checkNotNull(edge, "edge"); if (containsEdge(edge)) { EndpointPair<N> existingIncidentNodes = incidentNodes(edge); EndpointPair<N> newIncidentNodes = EndpointPair.of(this, nodeU, nodeV); checkArgument( existingIncidentNodes.equals(newIncidentNodes), REUSING_EDGE, edge,
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 26 17:43:39 GMT 2021 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java
assertThat(network.incidentNodes(10)).isEqualTo(EndpointPair.ordered("A", "B")); } @Test public void immutableNetworkBuilder_putEdgeFromEndpointPair() { ImmutableNetwork<String, Integer> network = NetworkBuilder.directed() .<String, Integer>immutable() .addEdge(EndpointPair.ordered("A", "B"), 10) .build();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Sun May 05 18:02:35 GMT 2019 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
assertThat(graph.nodes()).containsExactly("A", "B"); assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B")); } @Test public void immutableGraphBuilder_putEdgeFromEndpointPair() { ImmutableGraph<String> graph = GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build(); assertThat(graph.nodes()).containsExactly("A", "B");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Jan 09 20:24:43 GMT 2020 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/PackageSanityTests.java
setDistinctValues(NetworkBuilder.class, NETWORK_BUILDER_A, NETWORK_BUILDER_B); setDistinctValues(Network.class, IMMUTABLE_NETWORK_A, IMMUTABLE_NETWORK_B); setDefault(EndpointPair.class, EndpointPair.ordered("A", "B")); } @Override public void testNulls() throws Exception { try { super.testNulls(); } catch (AssertionFailedError e) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 09 19:24:25 GMT 2023 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/UndirectedGraphConnections.java
} @Override public Set<N> successors() { return adjacentNodes(); } @Override public Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode) { return Iterators.transform( adjacentNodeValues.keySet().iterator(), (N incidentNode) -> EndpointPair.unordered(thisNode, incidentNode)); } @Override @CheckForNull public V value(N node) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Oct 06 00:47:57 GMT 2021 - 3.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
assertThat(graph.nodes()).containsExactly("A", "B"); assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B")); } @Test public void immutableGraphBuilder_putEdgeFromEndpointPair() { ImmutableGraph<String> graph = GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build(); assertThat(graph.nodes()).containsExactly("A", "B");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jan 09 20:24:43 GMT 2020 - 4.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/ForwardingGraph.java
return delegate().predecessors(node); } @Override public Set<N> successors(N node) { return delegate().successors(node); } @Override public Set<EndpointPair<N>> incidentEdges(N node) { return delegate().incidentEdges(node); } @Override public int degree(N node) { return delegate().degree(node); } @Override public int inDegree(N node) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 26 17:43:39 GMT 2021 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/StandardValueGraph.java
} @Override public Set<EndpointPair<N>> incidentEdges(N node) { GraphConnections<N, V> connections = checkedConnections(node); IncidentEdgeSet<N> incident = new IncidentEdgeSet<N>(this, node) { @Override public Iterator<EndpointPair<N>> iterator() { return connections.incidentEdgeIterator(node); } };
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jan 22 17:29:38 GMT 2024 - 6.1K bytes - Viewed (0)