pub fn cut_size<W>(edges: &[(usize, usize, W)], partition: &[bool]) -> WExpand description
Compute the cut size for a given partition.
ยงArguments
edges- List of weighted edges as (u, v, weight) triplespartition- Boolean slice indicating which set each vertex belongs to