mbuild_polybuild.aa_functional_groups.amide.Amide.to_networkx

Amide.to_networkx(names_only=False)

Create a NetworkX graph representing the hierarchy of a Compound.

Parameters:

names_only (bool, optional, default=False) – Store only the names of the compounds in the graph, appended with their IDs, for distinction even if they have the same name. When set to False, the default behavior, the nodes are the compounds themselves.

Returns:

G

Return type:

networkx.DiGraph

Notes

This digraph is not the bondgraph of the compound.

See also

mbuild.conversion.to_networkx, mbuild.bond_graph