MoleculeGraph

MoleculeGraph[mol]

returns a graph constructed from the molecule mol.

Examples

Basic Examples  (2)

Create a graph from a molecule:

The returned graph is undirected:

Query for the atom and bond annotations:

Create a graph from only the heavy atoms:

Introduced in 2019
 (12.0)