ConnectedMoleculeQ

ConnectedMoleculeQ[mol]

returns True if the atoms in mol form are connected by bonds, and False otherwise.

Details

  • A molecule is connected if there is a path between every pair of atoms.
  • ConnectedMoleculeQ will return False for salts and van der Waals molecules.

Examples

Basic Examples  (1)

Test whether a salt is connected:

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

Test whether the parent acid is connected:

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