N - Node parameter typeV - Value parameter type@Beta public abstract class AbstractValueGraph<N,V> extends AbstractGraph<N> implements ValueGraph<N,V>
ValueGraph. It is recommended to extend
this class rather than implement ValueGraph directly.| Constructor and Description |
|---|
AbstractValueGraph() |
| Modifier and Type | Method and Description |
|---|---|
V |
edgeValue(Object nodeU,
Object nodeV)
If there is an edge connecting
nodeU to nodeV, returns the non-null value
associated with that edge. |
String |
toString()
Returns a string representation of this graph.
|
degree, edgeCount, edges, inDegree, outDegreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitedgeValueOrDefault, equals, hashCodeadjacentNodes, allowsSelfLoops, degree, edges, inDegree, isDirected, nodeOrder, nodes, outDegree, predecessors, successorspublic AbstractValueGraph()
public V edgeValue(Object nodeU, Object nodeV)
ValueGraphnodeU to nodeV, returns the non-null value
associated with that edge.
In an undirected graph, this is equal to edgeValue(nodeV, nodeU).
edgeValue in interface ValueGraph<N,V>public String toString()
toString in class AbstractGraph<N>Copyright © 2010-2016. All Rights Reserved.