de.aitools.iv.graphdrawing.datastructures.graph
Class WeightedEdge

java.lang.Object
  extended by de.aitools.iv.graphdrawing.datastructures.graph.WeightedEdge
All Implemented Interfaces:
java.lang.Comparable<WeightedEdge>

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


Field Summary
 int from
           
 int to
           
 double weight
           
 
Constructor Summary
WeightedEdge(int from, int to, double weight)
           
 
Method Summary
 int compareTo(WeightedEdge o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

from

public int from

to

public int to

weight

public double weight
Constructor Detail

WeightedEdge

public WeightedEdge(int from,
                    int to,
                    double weight)
Method Detail

compareTo

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object