org.apache.commons.graph.algorithm.spanning
Class MinimumSpanningForest.WeightedEdgeComparator

java.lang.Object
  extended byorg.apache.commons.graph.algorithm.spanning.MinimumSpanningForest.WeightedEdgeComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
MinimumSpanningForest

public class MinimumSpanningForest.WeightedEdgeComparator
extends java.lang.Object
implements java.util.Comparator


Field Summary
private  WeightedGraph graph
           
 
Constructor Summary
MinimumSpanningForest.WeightedEdgeComparator(WeightedGraph graph)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

graph

private WeightedGraph graph
Constructor Detail

MinimumSpanningForest.WeightedEdgeComparator

public MinimumSpanningForest.WeightedEdgeComparator(WeightedGraph graph)
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator