ytree.arbor.tree_node.TreeNode

class ytree.arbor.tree_node.TreeNode(uid, arbor=None, root=False)

Class for objects stored in Arbors.

Each TreeNode represents a halo in a tree. A TreeNode knows its halo ID, the level in the tree, and its global ID in the Arbor that holds it. It also has a list of its ancestors. Fields can be queried for it, its progenitor list, and the tree beneath.

__init__(uid, arbor=None, root=False)

Initialize a TreeNode with at least its halo catalog ID and its level in the tree.