- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for EdgesConnecting (0.08 seconds)
-
android/guava/src/com/google/common/graph/EdgesConnecting.java
* * @author James Sexton * @param <E> Edge parameter type */ final class EdgesConnecting<E> extends AbstractSet<E> { private final Map<?, E> nodeToOutEdge; private final Object targetNode; EdgesConnecting(Map<?, E> nodeToEdgeMap, Object targetNode) { this.nodeToOutEdge = checkNotNull(nodeToEdgeMap); this.targetNode = checkNotNull(targetNode); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 2.1K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java
} @Override public Set<N> adjacentNodes() { return Collections.unmodifiableSet(((BiMap<E, N>) incidentEdgeMap).values()); } @Override public Set<E> edgesConnecting(N node) { return new EdgesConnecting<>(((BiMap<E, N>) incidentEdgeMap).inverse(), node); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.9K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ForwardingNetwork.java
public int outDegree(N node) { return delegate().outDegree(node); } @Override public Set<E> edgesConnecting(N nodeU, N nodeV) { return delegate().edgesConnecting(nodeU, nodeV); } @Override public Set<E> edgesConnecting(EndpointPair<N> endpoints) { return delegate().edgesConnecting(endpoints); } @Override public @Nullable E edgeConnectingOrNull(N nodeU, N nodeV) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/MultiEdgesConnecting.java
/** * A class to represent the set of edges connecting an (implicit) origin node to a target node. * * <p>The {@link #outEdgeToNode} map allows this class to work on networks with parallel edges. See * {@link EdgesConnecting} for a class that is more efficient but forbids parallel edges. * * @author James Sexton * @param <E> Edge parameter type */ abstract class MultiEdgesConnecting<E> extends AbstractSet<E> {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/DirectedNetworkConnections.java
} @Override public Set<N> successors() { return Collections.unmodifiableSet(((BiMap<E, N>) outEdgeMap).values()); } @Override public Set<E> edgesConnecting(N node) { return new EdgesConnecting<>(((BiMap<E, N>) outEdgeMap).inverse(), node); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java
network.addNode(N1); network.addNode(N2); Set<String> edgesConnecting = network.edgesConnecting(N1, N2); assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23)); network.addEdge(N1, N2, E12); assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactlyElementsIn(edgesConnecting); } @Test public void edgesConnecting_oneEdge() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 7.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java
adjacentNodes = HashMultiset.create(incidentEdgeMap.values()); adjacentNodesReference = new SoftReference<>(adjacentNodes); } return adjacentNodes; } @Override public Set<E> edgesConnecting(N node) { return new MultiEdgesConnecting<E>(incidentEdgeMap, node) { @Override public int size() { return adjacentNodesMultiset().count(node); } }; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.7K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/NetworkConnections.java
Set<E> outEdges(); /** * Returns the set of edges connecting the origin node to {@code node}. For networks without * parallel edges, this set cannot be of size greater than one. */ Set<E> edgesConnecting(N node); /** * Returns the node that is adjacent to the origin node along {@code edge}. * * <p>In the directed case, {@code edge} is assumed to be an outgoing edge. */ N adjacentNode(E edge);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.3K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/GraphConstants.java
static final String MULTIPLE_EDGES_CONNECTING = "Cannot call edgeConnecting() when parallel edges exist between %s and %s. Consider calling " + "edgesConnecting() instead."; static final String PARALLEL_EDGES_NOT_ALLOWED = "Nodes %s and %s are already connected by a different edge. To construct a graph "Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java
successors = HashMultiset.create(outEdgeMap.values()); successorsReference = new SoftReference<>(successors); } return successors; } @Override public Set<E> edgesConnecting(N node) { return new MultiEdgesConnecting<E>(outEdgeMap, node) { @Override public int size() { return successorsMultiset().count(node); } }; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.6K bytes - Click Count (0)