|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
N - node value typeE - edge value typepublic interface Node<N,E>
Typed directed graph node.
| Method Summary | |
|---|---|
int |
degree()
Return the degree of this node. |
N |
getValue()
Return the value at this node. |
Set<Edge<N,E>> |
inEdges()
Return a read-only set view of the edges in this graph containing this node as the target. |
Set<Edge<N,E>> |
outEdges()
Return a read-only set view of the edges in this graph containing this node as the source. |
void |
setValue(N value)
Set the value at this node to value (optional operation). |
| Method Detail |
|---|
N getValue()
void setValue(N value)
value (optional operation).
value - value at this node
UnsupportedOperationException - if the setValue(N)
operation is not supported by this nodeint degree()
Set<Edge<N,E>> inEdges()
degree() == 0 or
this node has only out edges) but will not be null.
Set<Edge<N,E>> outEdges()
degree() == 0 or
this node has only in edges) but will not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||