public void Clear() { matching.Clear(); unmatchedRedNodes.Clear(); foreach (Node item in Graph.Nodes()) { if (IsRed(item)) { unmatchedRedNodes.Add(item); } } }
/// Removes all arcs from the matching. public void Clear() { matching.Clear(); unmatchedRedNodes.Clear(); foreach (var n in Graph.Nodes()) { if (IsRed(n)) { unmatchedRedNodes.Add(n); } } }