Economy checks: an undefined radius refuses; factor refusal says why
This commit is contained in:
parent
c6c8b4465b
commit
6b89019c02
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue