openff.bespokefit.utilities.molecule.canonical_order_atoms

openff.bespokefit.utilities.molecule.canonical_order_atoms(molecule: Molecule)[source]

Canonically order the atoms in the molecule in a way that preserves any existing atom maps.

Parameters

molecule – The input molecule

Returns

The input molecule with canonically-indexed atoms and bonds.