|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the Graph vertices typeE
- the Graph edges typepublic interface Path<V extends Vertex,E extends Edge<V>>
A Path
in a Graph
is a sequence of Vertex
such that from each of its vertices there is an
Edge
to the next Vertex
in the sequence.
Method Summary | |
---|---|
List<E> |
getEdges()
getEdges() - This returns a list of Edges which comprise the path. |
V |
getSource()
Returns the source of the path. |
V |
getTarget()
Returns the target of the path. |
List<V> |
getVertices()
getVertices() - This returns a list of Vertices, in order as they go from Start to End. |
int |
size()
size() - This returns the size of the path in terms of number of verticies it visits. |
Method Detail |
---|
V getSource()
V getTarget()
List<V> getVertices()
List<E> getEdges()
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |