Skip to content
Snippets Groups Projects
Commit 3da729c0 authored by Radek Hušek's avatar Radek Hušek
Browse files

imporove nice-voltage experiment

parent caa26c73
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
import sys, os
sys.path.append(os.path.dirname(__file__) + "/..")
"""
Calculate which members of the graph family from Theorem 7.6
are snarks.
"""
import _experiment
from itertools import permutations
from graph_tools.all import *
import json
......@@ -17,14 +20,15 @@ assignment = [0, 0, 0, 0, 0, 0, 0, 2, 2, 0, -2, 0, 0, 0, 1]
Seq = voltage_graph_zn_to_sequence(template, assignment)
for i in range(3, 16):
if __name__ == "__main__":
for i in range(3, 12):
G = Seq.graph(i).eval(UnderlyingGraph)
print(json.dumps({
"i": i,
"graph": G.sparse6_string()
}))
#X = Seq.stabilize(EdgeColoring(3))
#p, l = stabilize_period(X, shift=1)
#print(p, l, l[p:])
X = Seq.stabilize(EdgeColoring(3))
p, l = stabilize_period(X, shift=1)
print(p, l, l[p:])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment