- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for incidentEdges (0.13 sec)
-
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java
count = vertices.size() + vertices.size() / 2; } checkEdges(count); } private void checkEdges(int nEdges) { if (incidentEdges == null) { incidentEdges = new HashMap<>(nEdges); } if (excidentEdges == null) { excidentEdges = new HashMap<>(nEdges); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java
} for (E incidentEdge : sanityCheckSet(network.incidentEdges(node))) { assertTrue( network.inEdges(node).contains(incidentEdge) || network.outEdges(node).contains(incidentEdge)); assertThat(network.edges()).contains(incidentEdge); assertThat(network.incidentNodes(incidentEdge)).contains(node); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 32.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
addNode(N1); Set<EndpointPair<Integer>> incidentEdges = graph.incidentEdges(N1); assertThrows( UnsupportedOperationException.class, () -> incidentEdges.add(EndpointPair.unordered(N1, N2))); putEdge(N1, N2); assertThat(incidentEdges).containsExactlyElementsIn(graph.incidentEdges(N1)); } @Test public void predecessors_oneEdge() { putEdge(N1, N2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 12.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
addNode(N1); Set<EndpointPair<Integer>> incidentEdges = graph.incidentEdges(N1); assertThrows( UnsupportedOperationException.class, () -> incidentEdges.add(EndpointPair.unordered(N1, N2))); putEdge(N1, N2); assertThat(incidentEdges).containsExactlyElementsIn(graph.incidentEdges(N1)); } @Test public void predecessors_oneEdge() { putEdge(N1, N2);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 12.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
@Test public void incidentEdges_checkReturnedSetMutability() { addNode(N1); Set<String> incidentEdges = network.incidentEdges(N1); assertThrows(UnsupportedOperationException.class, () -> incidentEdges.add(E12)); addEdge(N1, N2, E12); assertThat(network.incidentEdges(N1)).containsExactlyElementsIn(incidentEdges); } @Override @Test public void adjacentNodes_checkReturnedSetMutability() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
assume().that(graphIsMutable()).isTrue(); addNode(N1); Set<String> incidentEdges = network.incidentEdges(N1); assertThrows(UnsupportedOperationException.class, () -> incidentEdges.add(E12)); addEdge(N1, N2, E12); assertThat(network.incidentEdges(N1)).containsExactlyElementsIn(incidentEdges); } @Override @Test public void adjacentNodes_checkReturnedSetMutability() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 20.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
assume().that(graphIsMutable()).isTrue(); addNode(N1); Set<String> incidentEdges = network.incidentEdges(N1); assertThrows(UnsupportedOperationException.class, () -> incidentEdges.add(E12)); addEdge(N1, N2, E12); assertThat(network.incidentEdges(N1)).containsExactlyElementsIn(incidentEdges); } @Override @Test public void adjacentNodes_checkReturnedSetMutability() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 21.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractGraphTest.java
assertThat(graph.hasEdgeConnecting(node, successor)).isTrue(); assertThat(graph.incidentEdges(node)).contains(EndpointPair.of(graph, node, successor)); } for (EndpointPair<N> endpoints : sanityCheckSet(graph.incidentEdges(node))) { if (graph.isDirected()) { assertThat(graph.hasEdgeConnecting(endpoints.source(), endpoints.target())).isTrue();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 16.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
@Test public void incidentEdges_checkReturnedSetMutability() { addNode(N1); Set<String> incidentEdges = network.incidentEdges(N1); assertThrows(UnsupportedOperationException.class, () -> incidentEdges.add(E12)); addEdge(N1, N2, E12); assertThat(network.incidentEdges(N1)).containsExactlyElementsIn(incidentEdges); } @Override @Test public void adjacentNodes_checkReturnedSetMutability() {
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/Network.java
/** * Returns the count of {@code node}'s {@link #incidentEdges(Object) incident edges}, counting * self-loops twice (equivalently, the number of times an edge touches {@code node}). * * <p>For directed networks, this is equal to {@code inDegree(node) + outDegree(node)}. * * <p>For undirected networks, this is equal to {@code incidentEdges(node).size()} + (number of * self-loops incident to {@code node}).
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 10 15:41:27 UTC 2024 - 22.4K bytes - Viewed (0)