Objects/Documentation
moities18.py
Require a vertex · I independently check every coefficient using two 17-vertex halves and all 34 size-eight conditional counts by exchanging the halves.
Download ↓"""Independent fixed-size counts on the karate graph by subset sums on two halves."""
import csv
import json
from pathlib import Path
def pass_once(reverse=False):
size=17
limit=1<<size
adj=[0]*34
with Path(__file__).with_name("karate.csv").open() as f:
for e in csv.DictReader(f):
u,v=int(e['u']),int(e['v'])
if reverse:
u,v=(u+size)%34,(v+size)%34
adj[u]|=1<<v