EndpointPair
of a directed edge is an ordered pair of nodes (source() and target()). The
EndpointPair of an undirected edge is an unordered pair of nodes (nodeU() and
nodeV()).
The edge is a self-loop if, and only if, the two endpoints are equal.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final N | |
| public abstract boolean | equals(Object
the reference object with which to compare. obj)Overrides java. EndpointPairs are equal if their source() and target()
are equal.
|
| public abstract int | hashCode()
Overrides java. EndpointPair is equal to Objects.hashCode(source(),
target()).
|
| public abstract boolean | isOrdered()
Returns |
| public final UnmodifiableIterator | |
| public final N | nodeU()
If this |
| public final N | |
| pack-priv static <N> EndpointPair | of(Graph<?> graph, N nodeU, N nodeV)
Returns an |
| pack-priv static <N> EndpointPair | of(Network<?, ?> network, N nodeU, N nodeV)
Returns an |
| public static <N> EndpointPair | |
| public abstract N | |
| public abstract N | |
| public static <N> EndpointPair | unordered(N nodeU, N nodeV)
Returns an |
| EndpointPair | back to summary |
|---|---|
| private EndpointPair(N nodeU, N nodeV) | |
| adjacentNode | back to summary |
|---|---|
| public final N adjacentNode(N node) Returns the node that is adjacent to
| |
| equals | back to summary |
|---|---|
| public abstract boolean equals(Object obj) Overrides java. Two ordered
| |
| hashCode | back to summary |
|---|---|
| public abstract int hashCode() Overrides java. The hashcode of an ordered
| |
| isOrdered | back to summary |
|---|---|
| public abstract boolean isOrdered() Returns | |
| iterator | back to summary |
|---|---|
| public final UnmodifiableIterator Implements java. Iterates in the order
| |
| nodeU | back to summary |
|---|---|
| public final N nodeU() If this | |
| nodeV | back to summary |
|---|---|
| public final N nodeV() Returns the node | |
| of | back to summary |
|---|---|
| pack-priv static <N> EndpointPair Returns an | |
| of | back to summary |
|---|---|
| pack-priv static <N> EndpointPair Returns an | |
| ordered | back to summary |
|---|---|
| public static <N> EndpointPair Returns an | |
| source | back to summary |
|---|---|
| public abstract N source() If this
| |
| target | back to summary |
|---|---|
| public abstract N target() If this
| |
| unordered | back to summary |
|---|---|
| public static <N> EndpointPair Returns an | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract com. EndpointPairs are equal if their source() and target()
are equal.
|
| public int | hashCode()
Implements abstract com. EndpointPair is equal to Objects.hashCode(source(),
target()).
|
| public boolean | isOrdered()
Implements abstract com. true if this EndpointPair is an ordered pair (i.e. represents the
endpoints of a directed edge).
|
| public N | source()
Implements abstract com. EndpointPair isOrdered(), returns the node which is the source.
|
| public N | target()
Implements abstract com. EndpointPair isOrdered(), returns the node which is the target.
|
| public String |
| Ordered | back to summary |
|---|---|
| private Ordered(N source, N target) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract com. Doc from com. Two ordered
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract com. Doc from com. The hashcode of an ordered
| |
| isOrdered | back to summary |
|---|---|
| public boolean isOrdered() Implements abstract com. Doc from com. Returns
| |
| source | back to summary |
|---|---|
| public N source() Implements abstract com. Doc from com. If this
| |
| target | back to summary |
|---|---|
| public N target() Implements abstract com. Doc from com. If this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract com. EndpointPairs are equal if their source() and target()
are equal.
|
| public int | hashCode()
Implements abstract com. EndpointPair is equal to Objects.hashCode(source(),
target()).
|
| public boolean | isOrdered()
Implements abstract com. true if this EndpointPair is an ordered pair (i.e. represents the
endpoints of a directed edge).
|
| public N | source()
Implements abstract com. EndpointPair isOrdered(), returns the node which is the source.
|
| public N | target()
Implements abstract com. EndpointPair isOrdered(), returns the node which is the target.
|
| public String |
| Unordered | back to summary |
|---|---|
| private Unordered(N nodeU, N nodeV) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract com. Doc from com. Two ordered
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract com. Doc from com. The hashcode of an ordered
| |
| isOrdered | back to summary |
|---|---|
| public boolean isOrdered() Implements abstract com. Doc from com. Returns
| |
| source | back to summary |
|---|---|
| public N source() Implements abstract com. Doc from com. If this
| |
| target | back to summary |
|---|---|
| public N target() Implements abstract com. Doc from com. If this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |