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
8ea751f3
Commit
8ea751f3
authored
Nov 09, 2017
by
Tiago Peixoto
Browse files
blockmodel: Fix segfault with edge prediction
This fixes issue
#426
parent
95c33f1f
Pipeline
#393
failed with stage
in 245 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph/inference/blockmodel/graph_blockmodel.hh
View file @
8ea751f3
...
...
@@ -339,7 +339,6 @@ public:
if
(
n_mrs
>
1
)
{
if
(
Add
&&
mrs
<
2
)
{
if
(
_B_E_D
==
0
&&
this
->
_Lrecdx
[
0
]
>=
0
)
...
...
@@ -625,8 +624,8 @@ public:
typedef
typename
graph_traits
<
g_t
>::
edge_descriptor
edges_t
;
gt_hash_set
<
vertex_t
>
vset
(
vs
.
begin
(),
vs
.
end
());
gt_hash_set
<
edges_t
>
eset
;
for
(
auto
v
:
vset
)
{
for
(
auto
e
:
all_edges_range
(
v
,
_g
))
...
...
@@ -670,8 +669,8 @@ public:
}
}
if
(
_mrs
[
me
]
==
0
)
_emat
.
remove_me
(
me
,
_bg
);
//
if (_mrs[me] == 0)
//
_emat.remove_me(me, _bg);
}
}
...
...
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