- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for incidentEdges (0.28 seconds)
-
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); } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 13K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractBaseGraph.java
@Override public Set<N> successors(N node) { return AbstractBaseGraph.this.successors(node); } @Override public Set<EndpointPair<N>> incidentEdges(N node) { return AbstractBaseGraph.this.incidentEdges(node); } @Override public Set<EndpointPair<N>> inEdges(N node) { checkNotNull(node); checkArgument(nodes().contains(node));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) -
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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Oct 06 20:14:55 GMT 2025 - 13.2K bytes - Click Count (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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Oct 06 20:14:55 GMT 2025 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java
assume().that(graphIsMutable()).isTrue(); addNode(N1); Set<EndpointPair<Integer>> incidentEdges = graph.incidentEdges(N1); assertThrows( UnsupportedOperationException.class, () -> incidentEdges.add(EndpointPair.ordered(N1, N2))); putEdge(N1, N2); assertThat(incidentEdges).containsExactlyElementsIn(graph.incidentEdges(N1)); } @Test public void predecessors_oneEdge() { putEdge(N1, N2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Oct 06 20:14:55 GMT 2025 - 14.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
public Set<E> adjacentEdges(E edge) { EndpointPair<N> endpointPair = incidentNodes(edge); // Verifies that edge is in this network. Set<E> endpointPairIncidentEdges = Sets.union(incidentEdges(endpointPair.nodeU()), incidentEdges(endpointPair.nodeV())); return edgeInvalidatableSet( Sets.difference(endpointPairIncidentEdges, ImmutableSet.of(edge)), edge); } @Override
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/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}).Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 17.6K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ValueGraph.java
*/ @Override Set<EndpointPair<N>> incidentEdges(N node); /** * Returns the count of {@code node}'s incident edges, counting self-loops twice (equivalently, * the number of times an edge touches {@code node}). * * <p>For directed graphs, this is equal to {@code inDegree(node) + outDegree(node)}. * * <p>For undirected graphs, this is equal to {@code incidentEdges(node).size()} + (number of
Created: 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-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() {
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) -
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() {
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)