wt.epm.retriever.graph
Class GraphEdge
java.lang.Object
wt.epm.retriever.graph.GraphEdge
- Direct Known Subclasses:
- ResultGraph.Link
- public class GraphEdge
- extends Object
Represents a link (edge) of a graph.
Holds references to both incident nodes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeA
protected GraphNode nodeA
nodeB
protected GraphNode nodeB
id
protected int id
type
protected int type
GraphEdge
protected GraphEdge(GraphNode nodeA,
GraphNode nodeB)
getParentGraphNode
public final GraphNode getParentGraphNode()
getChildGraphNode
public final GraphNode getChildGraphNode()
getId
public final int getId()
- The number of this Link in the getLinks() array.
- Returns:
- int
getLinkType
public final int getLinkType()
- LNK_TREE, LNK_JOINT or LNK_INVERT (see AbstractGraph).
- Returns:
- int
isTreeLink
public final boolean isTreeLink()
- Shortcut to getLinkType()==LNK_TREE
- Returns:
- boolean