Skip to main content

mapping_cost

Function mapping_cost 

Source
pub fn mapping_cost(
    query: &MolGraph,
    reference: &MolGraph,
    mapping: &HashMap<u16, u16>,
) -> i32
Expand description

Scores an injective atom map, penalizing unmatched atoms and bonds on both sides, with bonds inferred. As in the original, this scorer does not enforce connectivity or E/Z validity.