ToTNode#

class tangles.ToTNode(tangle_idx: int, reduced_tangle: ndarray)#

A node in a tree of tangles.

Properties

neighbours

All neighbors of this node

Methods

degree()

Return the degree of this node

is_leaf()

Check if this node is a leaf

set_label()

Set the label of this node