|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDataStructures.WeightedGraph.Arc
public static class WeightedGraph.Arc
A public class returned by WeightedGraph.arcs() and WeightedGraph.iterator().
An arc is represented as a tail head weight triple, where tail and head are string node labels and weight is an integer.
WeightedGraph.arcs()| Method Summary | |
|---|---|
java.lang.String |
head()
Returns the head or destination of this arc. |
java.lang.String |
tail()
Returns the tail or source of this arc. |
java.lang.String |
toString()
Represents the arc as a string. |
int |
weight()
Returns the weight attached to this arc. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String tail()
public java.lang.String head()
public int weight()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||