26 using System.Collections.Generic;
38 public Func<Node, bool>
IsRed {
get;
private set; }
40 public Func<Arc, double>
Cost {
get;
private set; }
50 int minimumMatchingSize = 0,
int maximumMatchingSize =
int.MaxValue)
69 Node source = flowGraph.AddNode();
70 Node target = flowGraph.AddNode();
73 else flowGraph.AddArc(node, target,
Directedness.Directed);
87 (ns.
Forest.Where(kv => kv.Value == 1).Select(kv => kv.Key)))
89 matching.Enable(arc,
true);