let molecule = new Molecule();
molecule.getBranchPaths(atom /* type: Atom */);
atom
- The atom involved in bondingType: Array
[String
]
The function returns an array of strings in the format 'id1-id2-id3'
that trace all available paths from a atom.
const { Molecule } = require('mcul'); let molecule = new Molecule(); let carbons = molecule.chainCarbons(3); molecule.hydrogenateCarbons(); console.log(molecule.getBranchPaths(carbons[0]));