BondQ

BondQ[m,bond]

gives True if bond is a bond in the molecule m, and False otherwise.

Details

  • The bond may be a Bond or a list of two atom indices.
  • BondQ checks for the existence of a supported bond type in the molecule expression.
  • An unspecified bond order will match any bond type between the given atoms.
  • The list of atoms in bond is treated as orderless for the purposes of matching.

Examples

Basic Examples  (2)

Test whether single bonds are part of a molecule:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Test double bonds:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2019
(12.0)