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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radek Hušek
cdc-counting
Commits
3da729c0
Commit
3da729c0
authored
3 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
imporove nice-voltage experiment
parent
caa26c73
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
experiments/nice-voltage.py
+16
-12
16 additions, 12 deletions
experiments/nice-voltage.py
with
16 additions
and
12 deletions
experiments/nice-voltage.py
+
16
−
12
View file @
3da729c0
#!/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
:])
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