Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdc-counting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radek Hušek
cdc-counting
Commits
b0fdbffa
Commit
b0fdbffa
authored
5 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
graph_tools.sequences: Add CyclicLadder
parent
8be61add
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
graph_tools/sequences.py
+22
-1
22 additions, 1 deletion
graph_tools/sequences.py
with
22 additions
and
1 deletion
graph_tools/sequences.py
+
22
−
1
View file @
b0fdbffa
def
_init_
():
def
_init_
():
global
\
global
\
FlowerSnark
,
FlowerSnarkAlt
,
\
FlowerSnark
,
FlowerSnarkAlt
,
\
Necklace
,
Flower
,
\
Necklace
,
Flower
,
CyclicLadder
,
\
GeneralizedPetersen
,
Petersen
GeneralizedPetersen
,
Petersen
from
.base
import
\
from
.base
import
\
...
@@ -162,6 +162,27 @@ def _init_():
...
@@ -162,6 +162,27 @@ def _init_():
return
super
().
graph
(
n
)
return
super
().
graph
(
n
)
@ParametrizedGraphSequence
class
CyclicLadder
:
sequence_start
=
1
D
=
Gadget
.
join
(
[
CUBIC_VERTEX
]
*
2
,
[
((
1
,
3
),
(
2
,
3
))
],
[
(
1
,
1
),
(
2
,
1
),
(
2
,
2
),
(
1
,
2
)
]
)
base_gadget
=
D
step_gadget
=
D
step_join
=
[
((
1
,
3
),
(
2
,
2
)),
((
1
,
4
),
(
2
,
1
))
]
step_out
=
[
(
1
,
1
),
(
1
,
2
),
(
2
,
3
),
(
2
,
4
)
]
def
__init__
(
self
,
crossed
=
False
):
if
crossed
:
self
.
final_join
=
[
((
1
,
1
),
(
1
,
3
)),
((
1
,
2
),
(
1
,
4
))
]
else
:
self
.
final_join
=
[
((
1
,
1
),
(
1
,
4
)),
((
1
,
2
),
(
1
,
3
))
]
Petersen
=
Gadget
.
join
(
Petersen
=
Gadget
.
join
(
[
CUBIC_VERTEX
]
*
10
,
[
CUBIC_VERTEX
]
*
10
,
[
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment