net.xqhs.graphs.matcher
Class GraphMatcherQuick.EdgeComparator

java.lang.Object
  extended by net.xqhs.graphs.matcher.GraphMatcherQuick.EdgeComparator
All Implemented Interfaces:
java.util.Comparator<Edge>
Enclosing class:
GraphMatcherQuick

public static class GraphMatcherQuick.EdgeComparator
extends java.lang.Object
implements java.util.Comparator<Edge>

Graph/pattern edge comparator based on label and then hash code.


Field Summary
private  MonitorPack monitorLink
          Link to the object measuring performance of the algorithm in terms of number of compared edges.
 
Constructor Summary
GraphMatcherQuick.EdgeComparator(MonitorPack monitor)
          Creates an new edge comparator.
 
Method Summary
 int compare(Edge e1, Edge e2)
           
 
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

monitorLink

private MonitorPack monitorLink
Link to the object measuring performance of the algorithm in terms of number of compared edges.

Constructor Detail

GraphMatcherQuick.EdgeComparator

public GraphMatcherQuick.EdgeComparator(MonitorPack monitor)
Creates an new edge comparator.

Parameters:
monitor - - the object measuring performance in terms of edge matches.
Method Detail

compare

public int compare(Edge e1,
                   Edge e2)
Specified by:
compare in interface java.util.Comparator<Edge>