Skip to main content

cost_mapping_with_generators

Function cost_mapping_with_generators 

Source
pub fn cost_mapping_with_generators(
    reference: &MolGraph,
    query: &MolGraph,
    reference_generators: &[Vec<u16>],
) -> Result<(Option<MappingResult>, SearchStats), String>
Expand description

Pass atom-permutation generators from Cannonaut for reference symmetry. Any valid subgroup is sufficient for correctness. No full group enumeration. Cost ties retain the first optimum; atom indices may affect the representative returned but do not affect the optimal cost.