mbuild_polybuild.aa_monomers.methacrylate.Methacrylate.direct_bonds

Methacrylate.direct_bonds(graph_depth=1)

Return a list of particles that this particle bonds to.

Parameters:

graph_depth (int, default=1) – Determines how many subsequent bonded neighbors to count. A value of 1 returns only paricles this particle is directly bonded to. A value of 2 returns direct bonded neighbors, plus their direct bonded neighbors.

Return type:

List of mb.Compound

See also

bond_graph.edges_iter

Iterations over all edges in a BondGraph

Compound.n_direct_bonds

Returns the number of bonds a particle contains