Permalink
Browse files

Fix SBM entropy with parallel edges and directed graphs

  • Loading branch information...
1 parent 66e5720 commit a65ce3df7e6bfd4de8dc1e2b32a9eecd8896f365 @count0 committed Oct 25, 2014
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/graph/community/graph_blockmodel.hh
@@ -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);
- }
}
}
};

0 comments on commit a65ce3d

Please sign in to comment.