Commit 8ea751f3 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

blockmodel: Fix segfault with edge prediction

This fixes issue #426
parent 95c33f1f
...@@ -339,7 +339,6 @@ public: ...@@ -339,7 +339,6 @@ public:
if (n_mrs > 1) if (n_mrs > 1)
{ {
if (Add && mrs < 2) if (Add && mrs < 2)
{ {
if (_B_E_D == 0 && this->_Lrecdx[0] >= 0) if (_B_E_D == 0 && this->_Lrecdx[0] >= 0)
...@@ -625,8 +624,8 @@ public: ...@@ -625,8 +624,8 @@ public:
typedef typename graph_traits<g_t>::edge_descriptor edges_t; typedef typename graph_traits<g_t>::edge_descriptor edges_t;
gt_hash_set<vertex_t> vset(vs.begin(), vs.end()); gt_hash_set<vertex_t> vset(vs.begin(), vs.end());
gt_hash_set<edges_t> eset; gt_hash_set<edges_t> eset;
for (auto v : vset) for (auto v : vset)
{ {
for (auto e : all_edges_range(v, _g)) for (auto e : all_edges_range(v, _g))
...@@ -670,8 +669,8 @@ public: ...@@ -670,8 +669,8 @@ public:
} }
} }
if (_mrs[me] == 0) // if (_mrs[me] == 0)
_emat.remove_me(me, _bg); // _emat.remove_me(me, _bg);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment