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

Move flowers into an experiment

parent cf5b7ccb
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__) + "/..")
from graph_tools.all import *
@GraphSequence
class Flower:
sequence_start = 2
SCV = FakeGadget(3, [ Boundary(((1,), (2,), (1, 2), None), 1) ])
D = Gadget.join(
[ SCV, CUBIC_VERTEX ],
[ ((1,3), (2,3)) ],
[ (1,1), (2,1), (2,2), (1,2) ]
)
step_join = [ ((1,3), (2,2)), ((1,4), (2,1)) ]
step_out = [ (1,1), (1,2), (2,3), (2,4) ]
final_join = [ ((1,1), (1,4)), ((1,2), (1,3)) ]
base_gadget = Gadget.join([D, D], step_join, step_out)
step_gadget = D
if __name__ == "__main__":
print(Flower.stabilize(CircuitDoubleCover))
...@@ -115,26 +115,6 @@ def _init_(): ...@@ -115,26 +115,6 @@ def _init_():
step_gadget = D step_gadget = D
@GraphSequence
class Flower:
sequence_start = 2
SCV = FakeGadget(3, [ Boundary(((1,), (2,), (1, 2), None), 1) ])
D = Gadget.join(
[ SCV, CUBIC_VERTEX ],
[ ((1,3), (2,3)) ],
[ (1,1), (2,1), (2,2), (1,2) ]
)
step_join = [ ((1,3), (2,2)), ((1,4), (2,1)) ]
step_out = [ (1,1), (1,2), (2,3), (2,4) ]
final_join = [ ((1,1), (1,4)), ((1,2), (1,3)) ]
base_gadget = Gadget.join([D, D], step_join, step_out)
step_gadget = D
@ParametrizedGraphSequence @ParametrizedGraphSequence
class GeneralizedPetersen: class GeneralizedPetersen:
sequence_start = 1 sequence_start = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment