Molecule.getBranchPaths

Arguments

let molecule = new Molecule();

molecule.getBranchPaths(atom /* type: Atom */);

Returns

Type: Array[String]

The function returns an array of strings in the format 'id1-id2-id3' that trace all available paths from a atom.

Interactive Example

const { Molecule } = require('mcul'); let molecule = new Molecule(); let carbons = molecule.chainCarbons(3); molecule.hydrogenateCarbons(); console.log(molecule.getBranchPaths(carbons[0]));