Skip to main content

reduce_per_topology

Function reduce_per_topology 

Source
pub fn reduce_per_topology(
    scored_pairs: &[ScoredPair],
    head_rel_idx: RelId,
    k_per_topology: u32,
) -> Vec<ScoredCandidate>
Expand description

Reduce a flat scored-pair list to the final ordered ScoredCandidate list.

Matches the Python reference comparator and diagnostics bit-for-bit.