finesse.tree.TreeNode
¶
Overview
- class finesse.tree.TreeNode(unicode name, TreeNode parent=None, bool empty=True)¶
Bases:
object
Container for tree-like structures.
Tree nodes can contain other tree nodes, allowing these objects to be built into a tree-like hierarchy useful for representing connections between components, nested data sets, etc.
- Parameters:
- namestr
The node name.
- parent: :class:`.TreeNode`, optional
The parent tree node, if not the root.
- emptybool, optional
Whether this node is considered “empty”, which determines which character to use to represent the node in the tree; defaults to True.
Properties
Methods
|
|
|
|
|
Draws the solution tree in text form. |
|
Create a tree node hierarchy from an acyclic network. |
|
|
|
|
|
|
|