|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an edge in Graph. An edge is an arc in a graph which connects exactly two nodes. These two nodes are referred to as the A node and the B node of the edge. The order of the A node and the B node is refered to as the node orientation of the edge.
Node
,
Graph
Field Summary | |
static int |
EQUAL_NODE_ORIENTATION
flag to indicate equal node orientation of two edges |
static int |
OPPOSITE_NODE_ORIENTATION
flag to indicate opposite node orientation of two edges |
static int |
UNEQUAL_NODE_ORIENTATION
flag to indicate unequal node orientation of two edges |
Method Summary | |
int |
compareNodes(Edge other)
Compares the node orientation of the edge with another edge. |
Node |
getNodeA()
Returns the A node of the edge. |
Node |
getNodeB()
Returns the B node of the edge. |
Node |
getOtherNode(Node node)
Returns one of the two nodes of an edge. |
void |
reverse()
Reverses the node orientation of the edge. |
Methods inherited from interface org.geotools.graph.structure.Graphable |
getCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited |
Field Detail |
public static final int EQUAL_NODE_ORIENTATION
public static final int UNEQUAL_NODE_ORIENTATION
public static final int OPPOSITE_NODE_ORIENTATION
Method Detail |
public Node getNodeA()
public Node getNodeB()
public Node getOtherNode(Node node)
node
- The node opposite of the node to return.
public void reverse()
public int compareNodes(Edge other)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |