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

Fix SBM entropy with parallel edges and directed graphs

parent 66e5720f
......@@ -297,17 +297,6 @@ struct entropy_parallel_edges
}
S += get_parallel_neighbours_entropy(v, us, g, get_node);
if (is_directed::apply<Graph>::type::value)
{
us.clear();
for (auto e : in_edges_range(v, g))
{
auto u = source(e, g);
us[u] += weight[e];
}
S += get_parallel_neighbours_entropy(v, us, g, get_node);
}
}
}
};
......
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