pub fn atom_in_ring(mol: &Molecule, atom: NodeIndex) -> bool
Check if an atom is in any ring (has an alternative path of length ≤ 8 through any neighbor).