|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SingleSourcePath<V,W>
A SingleSourcePath represents a solution to a single source path finding problem, containing one path from a single source vertex to one or more destinations.
| Method Summary | |
|---|---|
W |
getDistance(V destination)
Returns the distance to the given destination. |
void |
getPath(V destination,
java.util.List<V> path)
Appends a list of vertices which form a path between the source and given destination. |
V |
getSource()
Returns the source vertex for each path. |
| Method Detail |
|---|
V getSource()
W getDistance(V destination)
destination - The destination vertex.
void getPath(V destination,
java.util.List<V> path)
destination - The destination vertex.path - The list to which the path will be appended. No
vertices will be appended if there is no path between the source
and destination.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||