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
a91caf43
Commit
a91caf43
authored
5 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
Ensure that .eval(CircuitDoubleCover) returns integer
parent
a68f602e
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
graph_tools/parameters.py
+5
-1
5 additions, 1 deletion
graph_tools/parameters.py
with
5 additions
and
1 deletion
graph_tools/parameters.py
+
5
−
1
View file @
a91caf43
...
...
@@ -294,7 +294,11 @@ def _init_():
assert
len
(
b
)
<=
1
if
len
(
b
)
==
0
:
return
0
assert
b
[
0
].
boundary
==
(
None
,)
return
b
[
0
].
value
ret
=
b
[
0
].
value
if
isinstance
(
ret
,
Fraction
):
assert
ret
.
denominator
==
1
ret
=
ret
.
numerator
return
ret
def
enumerate_boundaries
(
self
,
n
):
"""
Enumerate all possible boundaries on cut of size `n`.
...
...
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