|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.graph.algorithm.util.PathImpl
| Field Summary | |
protected java.util.List |
edgeList
|
protected java.util.List |
vertexList
|
| Constructor Summary | |
PathImpl(java.util.List vertexList,
java.util.List edgeList)
|
|
PathImpl(Vertex start)
|
|
PathImpl(Vertex start,
Vertex end,
Edge edge)
|
|
| Method Summary | |
PathImpl |
append(PathImpl impl)
|
PathImpl |
append(Vertex v,
Edge e)
|
java.util.List |
getEdges()
getEdges() - This returns a list of Edges which comprise the path. |
Vertex |
getEnd()
Returns the end of the path. |
Vertex |
getStart()
Returns the start of the path. |
java.util.List |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.List vertexList
protected java.util.List edgeList
| Constructor Detail |
public PathImpl(java.util.List vertexList,
java.util.List edgeList)
public PathImpl(Vertex start)
public PathImpl(Vertex start,
Vertex end,
Edge edge)
| Method Detail |
public PathImpl append(PathImpl impl)
public PathImpl append(Vertex v,
Edge e)
public Vertex getStart()
Path
getStart in interface Pathpublic Vertex getEnd()
Path
getEnd in interface Pathpublic java.util.List getVertices()
Path
getVertices in interface Pathpublic java.util.List getEdges()
Path
getEdges in interface Pathpublic int size()
Path
size in interface Pathpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||