public interface Edge extends Graphable
Modifier and Type | Field and Description |
---|---|
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 *
|
Modifier and Type | Method and Description |
---|---|
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.
|
getCount, getID, getObject, getRelated, isVisited, setCount, setID, setObject, setVisited
static final int EQUAL_NODE_ORIENTATION
static final int UNEQUAL_NODE_ORIENTATION
static final int OPPOSITE_NODE_ORIENTATION
Node getNodeA()
Node getNodeB()
Node getOtherNode(Node node)
node
- The node opposite of the node to return.void reverse()
int compareNodes(Edge other)
Copyright © 1996–2019 Geotools. All rights reserved.