Class AdjListElmnt

java.lang.Object
  extended byAdjListElmnt

public class AdjListElmnt
extends java.lang.Object

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

target

public int target
The target node.


weight

public 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 Detail

AdjListElmnt

public AdjListElmnt(int target,
                    double weight)
The class constructor.

Method Detail

toString

public java.lang.String toString()