Commit 2291b947 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in CovariateBlockState with filtered graphs

parent c592d964
......@@ -139,7 +139,8 @@ struct cov_move_sweep_dispatch
vector<std::reference_wrapper<Vprop>>& mrm,
vector<std::reference_wrapper<Vprop>>& wr,
Vprop& b, vector<std::reference_wrapper<Vprop>>& bs,
vector<std::reference_wrapper<GraphInterface>>& bgis, Graph& g,
vector<std::reference_wrapper<GraphInterface>>& bgis,
Graph& g,
vector<std::reference_wrapper<GraphInterface>>& ags,
vector<std::reference_wrapper<boost::any>>& emat,
vector<std::reference_wrapper<boost::any>>& sampler,
......@@ -686,7 +687,8 @@ void do_split_graph(GraphInterface& gi, boost::any& aec, boost::any& ab,
auto uvmap = from_any_list<vmap_t>(ouvmap);
run_action<>()(gi, std::bind<void>(split_graph(), placeholders::_1,
std::ref(ec), std::ref(b), std::ref(eweight),
std::ref(ec), std::ref(b),
std::ref(vweight), std::ref(vc),
std::ref(vmap), std::ref(us),
......@@ -171,7 +171,9 @@ class CovariateBlockState(BlockState):
[_prop("v", u, u.vp["brmap"]) for u in],
[_prop("v", u, u.vp["vmap"]) for u in])
if self.g.get_vertex_filter()[0] is not None:
for u in
u.set_vertex_filter(u.new_vertex_property("bool", True))
if not self.layers:
total_state.master = True
total_state.slave = False
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