mbuild_polybuild.cg_monomers.betaine.Betaine.n_direct_bonds

property Betaine.n_direct_bonds

Return the number of bonds a particle is directly involved in.

This method should only be used on on compounds at the bottom of their hierarchy (i.e. a particle).

Returns:

The number of compounds this compound is directly bonded to.

Return type:

int