|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--DataStructures.WeightedGraph.Arc
A public class returned by the arcs() iteration over arcs. It represents an arc as a (tail, head, weight) triple, where tail and head are node labels and weight is an int.
WeightedGraph.arcs()| Method Summary | |
java.lang.Object |
head()
Returns the head or destination of this arc. |
java.lang.Object |
tail()
Returns the tail or source of this arc. |
int |
weight()
Returns the weight attached to this arc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.Object tail()
public java.lang.Object head()
public int weight()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||