mbuild_polybuild.cg_monomers.betaine.Betaine.print_hierarchy¶
- Betaine.print_hierarchy(print_full=False, index=None, show_tree=True)¶
Print the hierarchy of the Compound.
- Parameters:
print_full (bool, optional, default=False) – The full hierarchy will be printed, rather than condensing compounds with identical topologies. Topologies are considered identical if they have the same name, contain the number and names of children, contain the same number and names of particles, and the same number of bonds.
index (int, optional, default=None) – Print the branch of the first level of the hiearchy corresponding to the value specified by index. This only applies when print_full is True.
show_tree (bool, optional, default=True) – If False, do not print the tree to the screen.
- Return type:
tree, treelib.tree.Tree, hierarchy of the compound as a tree