Belle II Software light-2406-ragdoll
Node Class Reference

Public Member Functions

def __init__ (self, level, children, lca_index=None, lcas_level=0)
 

Public Attributes

 level
 LCA level.
 
 children
 Node children.
 
 lca_index
 LCA index.
 
 lcas_level
 LCAS level.
 
 parent
 Parent nodes.
 
 bfs_index
 BFS index.
 

Detailed Description

Class to hold levels of nodes in the tree.

Args:
    level (int): Level in the tree.
    children (list[Node]): Children of the nodes.
    lca_index (int): Index in the LCAS matrix.
    lcas_level (int): Level in the LCAS matrix.

Definition at line 24 of file lca_to_adjacency.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  level,
  children,
  lca_index = None,
  lcas_level = 0 
)
Initialization

Definition at line 35 of file lca_to_adjacency.py.

35 def __init__(self, level, children, lca_index=None, lcas_level=0):
36 """
37 Initialization
38 """
39
40 self.level = level
41
42 self.children = children
43
44 self.lca_index = lca_index
45
46 self.lcas_level = lcas_level
47
48
49 self.parent = None
50
51 self.bfs_index = -1
52
53

Member Data Documentation

◆ bfs_index

bfs_index

BFS index.

Definition at line 51 of file lca_to_adjacency.py.

◆ children

children

Node children.

Definition at line 42 of file lca_to_adjacency.py.

◆ lca_index

lca_index

LCA index.

Definition at line 44 of file lca_to_adjacency.py.

◆ lcas_level

lcas_level

LCAS level.

Definition at line 46 of file lca_to_adjacency.py.

◆ level

level

LCA level.

Definition at line 40 of file lca_to_adjacency.py.

◆ parent

parent

Parent nodes.

Definition at line 49 of file lca_to_adjacency.py.


The documentation for this class was generated from the following file: