Economy checks: an undefined radius refuses; factor refusal says why

This commit is contained in:
soul 2026-10-23 04:24:32 +02:00
commit 6b89019c02
2 changed files with 2 additions and 1 deletions

View file

@ -317,6 +317,7 @@ public static class EconomyChecks
var component = Enumerable.Range(0, n).Where(i => reach[start, i] && reach[i, start]).ToList();
foreach (var i in component) done[i] = true;
var rho = Irreducible(a, component);
if (double.IsNaN(rho)) rho = double.PositiveInfinity;
if (rho > best) { best = rho; bestComponent = component; }
}
return (best, bestComponent);