- <init>
Create a new node with given label
- childCount
Returns the number of children of this node.
- depthFirstIterator
Returns a depth first Iterable. This enables iterating the subtree rooted at
this node in post order
- getLabel
The label of this node. If the label is not set, this looks for a label property
TreeNodeProperties#
- getParent
Return the parent of this node.
- isInnerNode
Returns true if this is not a leaf.
- isLeaf
Returns true if this node is a leaf.
- children
Returns an Iterable over all children of this node. This allow using nodes in
foreach loop:
for(Tre
- getChildren
Get a list of all children of this node. It is helpful if one wants to iterate
over all children and
- getEdgeToParent
Return the edge to the parent node or null.
- getLevel
Lazy and one time computation of the level of this node.
- getDistanceToParent
Returns the distance to the parent node. If the node has no parent (root node )
-1 is returned.