A single atom from an SDF atom block.
A single bond from an SDF bond block, with zero-based atom indices (the record itself is one-based).
A parsed molecular structure.
Parses an MDL SDF / molfile V2000 record into atoms and bonds.
Returns a copy of a molecule with every hydrogen removed, along with the bonds that touched them, reindexing the surviving bonds. Hiding hydrogens makes the carbon skeleton legible at small render sizes.
Minimal parser for MDL SDF / molfile V2000 records, producing the atom and bond lists needed to draw a ball-and-stick model.