endrov.util.graphs
Class Edge

java.lang.Object
  extended by endrov.util.graphs.Edge
All Implemented Interfaces:
java.lang.Comparable<Edge>

public class Edge
extends java.lang.Object
implements java.lang.Comparable<Edge>


Field Summary
 Node from
           
 Node to
           
 int weight
           
 
Constructor Summary
Edge(Node f, Node t, int w)
           
 
Method Summary
 int compareTo(Edge e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

public Node from

to

public Node to

weight

public int weight
Constructor Detail

Edge

public Edge(Node f,
            Node t,
            int w)
Method Detail

compareTo

public int compareTo(Edge e)
Specified by:
compareTo in interface java.lang.Comparable<Edge>