|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xqhs.graphs.graph.NodeAlphaComparator
net.xqhs.graphs.representation.linear.LinearGraphRepresentation.NodeInAlphaComparator
static class LinearGraphRepresentation.NodeInAlphaComparator
Compares two Node structures. First criterion: node with lower in-degree in the graph (given in
constructor) is first; second criterion is lexical order (using NodeAlphaComparator).
| Field Summary | |
|---|---|
protected Graph |
theGraph
The graph containing the nodes to be compared. |
| Constructor Summary | |
|---|---|
LinearGraphRepresentation.NodeInAlphaComparator(Graph graph)
Default constructor. |
|
| Method Summary | |
|---|---|
int |
compare(Node n0,
Node n1)
|
| 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.NodeInAlphaComparator(Graph graph)
graph - - the graph to which the nodes to compare belong.| Method Detail |
|---|
public int compare(Node n0,
Node n1)
compare in interface java.util.Comparator<Node>compare in class NodeAlphaComparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||