Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
e0db25e0
Commit
e0db25e0
authored
Apr 22, 2015
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in CovariateBlockState.merge_layers() with overlapping groups
parent
211e1a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/graph_tool/community/covariate_blockmodel.py
src/graph_tool/community/covariate_blockmodel.py
+4
-2
No files found.
src/graph_tool/community/covariate_blockmodel.py
View file @
e0db25e0
...
...
@@ -249,8 +249,10 @@ class CovariateBlockState(BlockState):
max_BE
=
self
.
max_BE
)
else
:
base_u
,
node_index
=
self
.
__get_base_u
(
u
)
state
=
OverlapBlockState
(
u
,
b
=
u
.
vp
[
"b"
],
B
=
u
.
num_vertices
()
+
2
*
nt
,
B
=
u
.
num_vertices
()
+
2
*
nt
B
=
max
(
B
,
u
.
vp
[
"b"
].
a
.
max
()
+
1
+
2
*
nt
)
state
=
OverlapBlockState
(
u
,
b
=
u
.
vp
[
"b"
].
a
,
B
=
B
,
vweight
=
u
.
vp
[
"weight"
],
node_index
=
node_index
,
base_g
=
base_u
,
...
...
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