|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAdjListElmnt
This class implements an element of an adjacency linked-list in the adjacency lists representation of a graph.
Field Summary | |
int |
target
The target node. |
double |
weight
The weight of the corresponding edge (i.e., the edge from the node whose adjacency list this AdjListElmnt belongs to, to the target node). |
Constructor Summary | |
AdjListElmnt(int target,
double weight)
The class constructor. |
Method Summary | |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int target
public double weight
Constructor Detail |
public AdjListElmnt(int target, double weight)
Method Detail |
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |