- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 51 for EndpointPair (0.08 seconds)
-
android/guava/src/com/google/common/graph/EndpointPair.java
@Immutable(containerOf = {"N"}) public abstract class EndpointPair<N> implements Iterable<N> { private final N nodeU; private final N nodeV; private EndpointPair(N nodeU, N nodeV) { this.nodeU = checkNotNull(nodeU); this.nodeV = checkNotNull(nodeV); } /** Returns an {@link EndpointPair} representing the endpoints of a directed edge. */ public static <N> EndpointPair<N> ordered(N source, N target) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 8K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/EndpointPairIterator.java
* Visited Nodes = {N1} * EndpointPair [N2, N1] - skip * EndpointPair [N2, N3] - return * Visited Nodes = {N1, N2} * EndpointPair [N3, N1] - skip * EndpointPair [N3, N2] - skip * Visited Nodes = {N1, N2, N3} * EndpointPair [N4, N4] - return * Visited Nodes = {N1, N2, N3, N4} * </pre> */ private static final class Undirected<N> extends EndpointPairIterator<N> {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.9K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractBaseGraph.java
// Graph<LinkedList>. @SuppressWarnings("unchecked") @Override public boolean contains(@Nullable Object obj) { if (!(obj instanceof EndpointPair)) { return false; } EndpointPair<?> endpointPair = (EndpointPair<?>) obj; return isOrderingCompatible(endpointPair)
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/EndpointPairTest.java
network.addEdge(1, 2, "1-2"); EndpointPair<Integer> endpointPair = network.incidentNodes("1-2"); assertThrows(IllegalArgumentException.class, () -> endpointPair.adjacentNode(3)); } } @Test public void testEquals() { EndpointPair<String> ordered = EndpointPair.ordered("a", "b"); EndpointPair<String> orderedMirror = EndpointPair.ordered("b", "a");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/graph/EndpointPairTest.java
network.addEdge(1, 2, "1-2"); EndpointPair<Integer> endpointPair = network.incidentNodes("1-2"); assertThrows(IllegalArgumentException.class, () -> endpointPair.adjacentNode(3)); } } @Test public void testEquals() { EndpointPair<String> ordered = EndpointPair.ordered("a", "b"); EndpointPair<String> orderedMirror = EndpointPair.ordered("b", "a");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractNetwork.java
// operations only in weird cases like checking for an EndpointPair<ArrayList> in a // Network<LinkedList>. @SuppressWarnings("unchecked") @Override public boolean contains(@Nullable Object obj) { if (!(obj instanceof EndpointPair)) { return false; } EndpointPair<?> endpointPair = (EndpointPair<?>) obj; return isOrderingCompatible(endpointPair)
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/BaseGraph.java
* * @since 29.0 */ ElementOrder<N> incidentEdgeOrder(); /** * Returns a live view of this graph as a {@link Network} whose edges {@code E} are {@code * EndpointPair<N>} objects (that is, a {@code Network<N, EndpointPair<N>>}). The resulting {@code * Network}'s edge-oriented methods (such as {@code inEdges()}) will return views transformed from * the corresponding node-oriented methods (such as {@code predecessors()}).
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Nov 11 17:11:16 GMT 2025 - 2.9K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/IncidentEdgeSet.java
public boolean contains(@Nullable Object obj) { if (!(obj instanceof EndpointPair)) { return false; } EndpointPair<?> endpointPair = (EndpointPair<?>) obj; if (graph.isDirected() != endpointPair.isOrdered()) { return false; } if (graph.isDirected()) { Object source = endpointPair.source(); Object target = endpointPair.target();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 3.3K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/Graphs.java
public Set<E> outEdges(N node) { return delegate().inEdges(node); // transpose } @Override public EndpointPair<N> incidentNodes(E edge) { EndpointPair<N> endpointPair = delegate().incidentNodes(edge); return EndpointPair.of(network, endpointPair.nodeV(), endpointPair.nodeU()); // transpose } @Override public Set<E> edgesConnecting(N nodeU, N nodeV) {
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) -
android/guava/src/com/google/common/graph/DirectedGraphConnections.java
return EndpointPair.ordered(thisNode, connection.node); } else { return EndpointPair.ordered(connection.node, thisNode); } }); } AtomicBoolean alreadySeenSelfLoop = new AtomicBoolean(false); return new AbstractIterator<EndpointPair<N>>() { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 17.8K bytes - Click Count (0)