Expand description
Structs§
- Atom
- A single atom node in the molecular graph.
- Bond
- A bond edge in the molecular graph.
- Molecule
- Molecular graph: atoms as nodes, bonds as edges.
Constructed from a SMILES string via
Molecule::from_smiles. - Node
Index - Node identifier.
Enums§
- Bond
Order - Bond order: single, double, triple, aromatic, or unknown.
- Bond
Stereo - E/Z (cis/trans) stereochemistry of a double bond.
- Chiral
Type - Tetrahedral chirality type derived from the SMILES
@/@@specification. - Hybridization
- Hybridization state of an atom, used to compute bond angles and geometry.
Functions§
- atom_
in_ ring - Check if an atom is in any ring (has an alternative path of length ≤ 8 through any neighbor).
- bond_
in_ ring_ of_ size - Check if a bond (edge between a and b) is in a ring of exactly the given size.
- get_
corrected_ ideal_ angle - Returns the ideal 1–2–3 bond angle (radians) between atoms
n1–center–n2, accounting for ring strain in small rings (3-, 4-, 5-membered). - get_
covalent_ radius - Returns the covalent radius (in Å) for a given atomic number Data derived from RDKit’s atomic_data.cpp
- get_
ideal_ angle - Returns the ideal bond angle (in radians) for a given hybridization
- get_
vdw_ radius - Returns the Van der Waals radius (in Å)
- min_
path_ excluding - BFS shortest path (in bonds) from
starttotargetin the molecular graph, excluding the nodeexclude. Used to detect ring membership and ring sizes. ReturnsNoneif no path exists withinlimitbonds. - min_
path_ excluding2 - BFS shortest path from start to target, excluding two intermediate nodes.