|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.xqhs.graphs.representation.linear.LinearGraphRepresentation.PathComparator
static class LinearGraphRepresentation.PathComparator
A Comparator
for PathElement
instances that sorts the element with the longer distance to a leaf
first. In case both elements have the same distance to the farthest leaf, a LinearGraphRepresentation.NodeInAlphaComparator
is used
on the graph nodes corresponding to the path elements.
Field Summary | |
---|---|
protected Graph |
theGraph
The graph containing the paths to be compared. |
Constructor Summary | |
---|---|
LinearGraphRepresentation.PathComparator(Graph graph)
Default constructor. |
Method Summary | |
---|---|
int |
compare(PathElement el1,
PathElement el2)
|
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 |
---|
protected Graph theGraph
Constructor Detail |
---|
public LinearGraphRepresentation.PathComparator(Graph graph)
graph
- - the graph to which the paths to compare belong.Method Detail |
---|
public int compare(PathElement el1, PathElement el2)
compare
in interface java.util.Comparator<PathElement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |