Tree

Tree Node

Tree Leaf

class pygly.tree_leaf.TreeLeaf[source]

Base class for Tree Leaf objects.

Supports a single parent. Cannot have children.

__init__()[source]

Creates a tree leaf object.

parent

The current parent of the node or None if there isn’t one.

This is an @property decorated method which allows retrieval and assignment of the scale value.

predecessors()[source]

Returns successive parents of the node.

Generator function that allows iteration up the tree.