Class GraphNode
java.lang.Object
EDU.purdue.cs.bloat.util.GraphNode
- Direct Known Subclasses:
Block
GraphNode represents a node in a Graph. Each node has a set of predacessors
and successors associated with it as well as a pre-order and post-order
traversal index. This information is maintained by the Graph in which the
GraphNode resides.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collectionpreds()Returns the predacessor (or parent) nodes of this GraphNode.protected Collectionsuccs()Returns the successor (or children) nodes of this GraphNode.
-
Field Details
-
succs
-
preds
-
preIndex
protected int preIndex -
postIndex
protected int postIndex
-
-
Constructor Details
-
GraphNode
public GraphNode()Constructor.
-
-
Method Details
-
succs
Returns the successor (or children) nodes of this GraphNode. -
preds
Returns the predacessor (or parent) nodes of this GraphNode.
-