|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
D - Distance type (usually Integer or Double)public interface VDist<D extends Number>
Interface for vertices that measure the distance from a source node.
| Method Summary | |
|---|---|
D |
getDistance()
Returns the length of the shortest path from a source node to this node. |
void |
reset()
Resets this node's distance to the default distance value. |
void |
setDistance(D newDistance)
Sets the new length of a shortest path from a source node to this node. |
void |
setSource()
Sets this node's distance to zero. |
| Method Detail |
|---|
D getDistance()
void setDistance(D newDistance)
newDistance - Length of a shortest path to this node.void reset()
void setSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||