pub fn is_matching( num_vertices: usize, edges: &[(usize, usize)], selected: &[bool], ) -> bool
Check if a selection of edges forms a valid matching.