Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Radek Hušek
group-connectivity-pub
Commits
ebf7b625
Commit
ebf7b625
authored
Mar 11, 2017
by
Radek Hušek
Browse files
groupConnectivity.pyx: add signal handling
parent
22f298af
Changes
1
Hide whitespace changes
Inline
Side-by-side
groupConnectivity.pyx
View file @
ebf7b625
include
"cysignals/signals.pxi"
from
libcpp.vector
cimport
vector
from
libcpp
cimport
bool
from
libcpp.utility
cimport
pair
...
...
@@ -138,7 +140,9 @@ def testGroupConnectivity(G, group = "Z4", getClasses = False,
print
"Double subdivided edges: "
,
doubleSubdivisions
tester
.
init
(
G
.
num_edges
(),
spanningTreeEdges
,
twoCuts
,
doubleSubdivisions
,
elemCycles
)
sig_on
()
ret
=
tester
.
run
()
sig_off
()
if
getClasses
:
classes
=
tester
.
getClasses
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment