Skip to content

Stochastic Fragment


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

this class represents a stochastic fragment.

stochastic fragments are only found within stochastic objects

PARAMETER DESCRIPTION
id_

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

TYPE: int

parent

TYPE: StochasticObject

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