Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
c9a7fd1d
Commit
c9a7fd1d
authored
Aug 09, 2016
by
Tiago Peixoto
Browse files
blockmodel: fix nested sampling of filtered graphs
This fixes issue
#322
parent
62055e30
Pipeline
#210
failed with stage
in 4416 minutes and 31 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/graph_tool/inference/blockmodel.py
View file @
c9a7fd1d
...
@@ -511,6 +511,8 @@ class BlockState(object):
...
@@ -511,6 +511,8 @@ class BlockState(object):
else
:
else
:
bg
=
self
.
bg
bg
=
self
.
bg
eweight
=
self
.
mrs
eweight
=
self
.
mrs
if
self
.
g
.
get_vertex_filter
()[
0
]
is
not
None
:
bg
=
GraphView
(
bg
,
vfilt
=
numpy
.
ones
(
bg
.
num_vertices
()))
if
vweight
==
"nonempty"
:
if
vweight
==
"nonempty"
:
vweight
=
bg
.
new_vp
(
"int"
,
self
.
wr
.
a
>
0
)
vweight
=
bg
.
new_vp
(
"int"
,
self
.
wr
.
a
>
0
)
elif
vweight
==
"unity"
:
elif
vweight
==
"unity"
:
...
...
Write
Preview
Markdown
is supported
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