Skip to content

Branch


bigsmiles.data_structures.bigsmiles.Branch(id_, parent, **kwargs)

this class represents a branch

PARAMETER DESCRIPTION
id_

id of bond (id is limited to bonds). Range: [1, inf]

TYPE: int

parent

owner of the branch

TYPE: BigSMILES | StochasticFragment | Branch

kwargs

any additional keyword arguments are accepted and set as additional attributes

DEFAULT: {}

details: str property

long string representation

in_stochastic_object: bool property

returns that if on the tree up to the root there is a stochastic object parent

root: BigSMILES property

the owner at the top of the parent tree

__eq__(other)

equality is determining all nodes and rings are equal