Skip to main content

substruct_match

Function substruct_match 

Source
pub fn substruct_match(
    mol: &Molecule,
    pattern: &SmartsPattern,
) -> Vec<Vec<usize>>
Expand description

Find all substructure matches of pattern in mol. Returns a vec of mappings: each mapping is pattern_atom_idx → molecule_atom_idx.