The Ukkonen.Node class
The type of the nodes in the tree.
Contents
| The type of the nodes in the tree. | |
| The index of the child node corresponding to a letter (if any). | |
| The children of the current node. | |
| Copy a  | |
| Returns  | |
| Returns  | |
| The index of the first letter in the edge leading to the node. | |
| The length of the edge leading into the current node. | |
| The index of the parent node. | |
| The index of one past the last letter in the edge leading to the node. | 
Full API
- class Ukkonen.Node
- __init__(self: Ukkonen, l: int = 0, r: int = 0, parent: int | Undefined = UNDEFINED) None
- Construct a node from left most index, right most index, and parent. 
 - child(self: Ukkonen.Node, c: int) int
- The index of the child node corresponding to a letter (if any). 
 - property children
- The children of the current node. 
 - copy(self: Ukkonen.Node) Ukkonen.Node
- Copy a - Ukkonen.Nodeobject.- Returns:
- A copy. 
- Return type:
 
 - is_leaf(self: Ukkonen.Node) bool
- Returns - True`if the node is a leaf and- Falseif not.- Returns:
- Whether the node is a leaf. 
- Return type:
- Complexity:
- Constant. 
 
 - is_root(self: Ukkonen.Node) bool
- Returns - Trueif the node is the root and- Falseif not.- Returns:
- Whether the node is the root. 
- Return type:
- Complexity:
- Constant. 
 
 - property l
- The index of the first letter in the edge leading to the node. 
 - length(self: Ukkonen.Node) int
- The length of the edge leading into the current node. - Returns:
- The length of the edge. 
- Return type:
- Complexity:
- Constant. 
 
 - property parent
- The index of the parent node. 
 - property r
- The index of one past the last letter in the edge leading to the node.