Commit e6183bba authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_blockmodel.hh: More checking

parent 9d395afb
......@@ -968,6 +968,8 @@ public:
double virtual_move(size_t v, size_t r, size_t nr, entropy_args_t ea,
MEntries& m_entries, GetB&& get_b)
{
assert(size_t(get_b(v)) == r);
if (r == nr)
return 0;
......@@ -1203,7 +1205,7 @@ public:
if (s == t)
s = _b[source(e, _g)];
else
assert(_b[source(e, _g)] == t);
assert(size_t(_b[source(e, _g)]) == t);
}
}
......@@ -1604,7 +1606,7 @@ public:
partition_stats_t& get_partition_stats(size_t v)
{
return _partition_stats[_pclabel[v]];
return _partition_stats[_gstate->_pclabel[v]];
}
void init_mcmc(double c, double dl)
......
Markdown is supported
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