ValueGraph. It is recommended to extend
this class rather than implement ValueGraph directly.
The methods implemented in this class should not be overridden unless the subclass admits a more efficient implementation.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Graph | asGraph()
Implements com. Graph.
|
| public Optional | edgeValue(N nodeU, N nodeV)
Implements com. nodeU to nodeV (in the order, if
any, specified by endpoints), if one is present; otherwise, returns Optional.empty().
|
| public Optional | edgeValue(EndpointPair<N> endpoints)
Implements com. endpoints (in the order, if any, specified
by endpoints), if one is present; otherwise, returns Optional.empty().
|
| private static <N, V> Map | |
| public final boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Implements com. true iff object is a ValueGraph that has the same elements and
the same structural relationships as those in this graph.
|
| public final int | hashCode()
Overrides java. Implements com. |
| public String |
| AbstractValueGraph | back to summary |
|---|---|
| public AbstractValueGraph() | |
| asGraph | back to summary |
|---|---|
| public Graph Implements com. Doc from com. Returns a live view of this graph as a
| |
| edgeValue | back to summary |
|---|---|
| public Optional Implements com. Doc from com. Returns the value of the edge that connects
| |
| edgeValue | back to summary |
|---|---|
| public Optional Implements com. Doc from com. Returns the value of the edge that connects If this graph is directed, the endpoints must be ordered.
| |
| edgeValueMap | back to summary |
|---|---|
| private static <N, V> Map | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object obj) Overrides java. Implements com. Doc from com. Returns Thus, two value graphs A and B are equal if all of the following are true:
Graph properties besides A reference implementation of this is provided by
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Implements com. Doc from com. Returns the hash code for this graph. The hash code of a graph is defined as the hash code of a
map from each of its A reference implementation of this is provided by
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this graph.
| |