| org.geotools.graph.structure.Edge
All known Subclasses: org.geotools.graph.structure.basic.BasicEdge, org.geotools.graph.structure.opt.OptEdge,
Edge | public interface Edge extends Graphable(Code) | | 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.
See Also: Node See Also: Graph author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net |
Method Summary | |
public int | compareNodes(Edge other) Compares the node orientation of the edge with another edge.
EQUAL_NODE_ORIENTATION : both nodes are equal in the correct order.UNEQUAL_NODE_ORIENTATION: both nodes are not equalOPPOSITE_NODE_ORIENTATION : both nodes are equal in opposite order. | public Node | getNodeA() Returns the A node of the edge. | public Node | getNodeB() Returns the B node of the edge. | public Node | getOtherNode(Node node) Returns one of the two nodes of an edge. | public void | reverse() Reverses the node orientation of the edge. |
EQUAL_NODE_ORIENTATION | final public static int EQUAL_NODE_ORIENTATION(Code) | | flag to indicate equal node orientation of two edges *
|
OPPOSITE_NODE_ORIENTATION | final public static int OPPOSITE_NODE_ORIENTATION(Code) | | flag to indicate opposite node orientation of two edges *
|
UNEQUAL_NODE_ORIENTATION | final public static int UNEQUAL_NODE_ORIENTATION(Code) | | flag to indicate unequal node orientation of two edges *
|
compareNodes | public int compareNodes(Edge other)(Code) | | Compares the node orientation of the edge with another edge.
EQUAL_NODE_ORIENTATION : both nodes are equal in the correct order.UNEQUAL_NODE_ORIENTATION: both nodes are not equalOPPOSITE_NODE_ORIENTATION : both nodes are equal in opposite order. |
getNodeA | public Node getNodeA()(Code) | | Returns the A node of the edge.
The A node. |
getNodeB | public Node getNodeB()(Code) | | Returns the B node of the edge.
The B node. |
getOtherNode | public Node getOtherNode(Node node)(Code) | | Returns one of the two nodes of an edge. If the specified node is node A,
then node B is returned, and vice versa.
Parameters: node - The node opposite of the node to return. Node A if node B is specified, node B if node A is specified. |
reverse | public void reverse()(Code) | | Reverses the node orientation of the edge.
|
|
|