finesse.tree.TreeNode¶
Overview
- class finesse.tree.TreeNode(str name, TreeNode parent=None, bool empty=True, str edge_info=None)[source]¶
 Bases:
objectContainer 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.
- edge_infostr, optional
 String information on how this node is connected to its parent node. Will be used in
TreeNode.draw_tree()
Properties
Methods
  | 
|
  | 
|
  | 
Draws the solution tree in text form.  | 
  | 
Create a tree node hierarchy from an acyclic network.  | 
  | 
|
  | 
|
  | 
|
  |