I wrote this code here:
private static float Calc(Node node) { var p = 0f; foreach (var n in node.Linked) p = node.Linked.Max(z => Calc(n)); return p; } The value of the elements of the collection is either 0 or 1, but for any input values I always get 0, tell me what the problem is?
Calcfunction never returns1. - Igor