WLJS LogoWLJS Notebook

Bond

Represent a chemical bond between atoms in a molecule.

Bond[{i, j}, type] represents a chemical bond between the atoms at indices i and j.

Common bond types are "Single", "Double", "Triple", and "Aromatic". In molecule patterns, atom specifications such as "C" and "O" can be used instead of numeric indices.

Examples

Construct a water molecule with two single bonds:

Molecule[
  {"O", "H", "H"},
  {
    Bond[{1, 2}, "Single"],
    Bond[{1, 3}, "Single"]
  }
]

Use a bond as a pattern that matches carbon–oxygen double bonds:

carbonylBond = Bond[{"C", "O"}, "Double"];
MoleculePlot[Molecule["acetone"], carbonylBond]

See Molecule, MoleculePattern, and MoleculePlot.

Something isn't working? Report an issue.

Please visit the official Wolfram Language Reference for more details.

On this page