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
35b3bf30
Commit
35b3bf30
authored
Feb 14, 2018
by
Tiago Peixoto
Browse files
inference: Fix problem with coupled states
parent
8f16e8ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/inference/blockmodel/graph_blockmodel.hh
View file @
35b3bf30
...
...
@@ -795,6 +795,8 @@ public:
_emat
.
remove_me
(
me
,
_bg
);
if
(
_coupled_state
!=
nullptr
)
_coupled_state
->
remove_edge
(
me
);
else
boost
::
remove_edge
(
me
,
this
->
_bg
);
}
}
}
...
...
@@ -865,6 +867,9 @@ public:
_c_brec
[
i
][
me
]
=
0
;
_c_bdrec
[
i
][
me
]
=
0
;
}
if
(
_coupled_state
!=
nullptr
)
_coupled_state
->
add_edge
(
me
);
}
assert
(
me
==
_emat
.
get_me
(
r
,
s
));
...
...
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