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
eb8deeaa
Commit
eb8deeaa
authored
May 10, 2016
by
Tiago Peixoto
Browse files
inference.BlockModelState: Fix bug with edts
parent
152ca20b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/inference/blockmodel.py
View file @
eb8deeaa
...
...
@@ -239,7 +239,7 @@ class BlockState(object):
self
.
btfield
=
self
.
bg
.
degree_property_map
(
"out"
,
self
.
bg
.
ep
.
dt
)
tokens
=
self
.
ignore_degrees
.
fa
==
0
token_groups
=
bincount
(
self
.
b
.
fa
[
tokens
])
>
0
token_groups
=
token_groups
.
resize
(
self
.
bg
.
num_vertices
())
token_groups
.
resize
(
self
.
bg
.
num_vertices
())
self
.
btfield
.
a
[
token_groups
]
=
0
else
:
self
.
vtfield
=
self
.
g
.
new_vp
(
"double"
)
...
...
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