prevent bond/create to its own molecule

Dear Lammps users,

I tried the bond/create command trying to create a bond between cyan
color atoms (carbon at ortho and para position) and tan color atoms
After the bond created, the cyan color atom type change to blue color
atom type (C_sp2).
One problem is there are two bonds created from the brown color atom
to the blue atoms.
Is there any way to prevent creating bond to its own molecule ?




You can do this via the iparam,jparam setting to fix bond/create
which effectively limit the # of new bonds that an atom can create.