From 0cb5e19d74e9eecb5987ee66bdb0d5bc51ff5873 Mon Sep 17 00:00:00 2001 From: Tiago de Paula Peixoto Date: Sun, 24 Jan 2016 22:51:53 +0100 Subject: [PATCH] graph_blockmodel.hh: Some trivial cosmetic changes --- src/graph/community/graph_blockmodel.hh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/graph/community/graph_blockmodel.hh b/src/graph/community/graph_blockmodel.hh index 78afe6ae..4505bc6e 100644 --- a/src/graph/community/graph_blockmodel.hh +++ b/src/graph/community/graph_blockmodel.hh @@ -970,27 +970,25 @@ inline size_t get_mrs(Vertex r, Vertex s, const Eprop& mrs, const Emat& emat, struct standard_neighbours_policy { template - IterRange::type> - get_out_edges(Vertex v, Graph& g) const + auto get_out_edges(Vertex v, Graph& g) const { return out_edges_range(v, g); } template - IterRange::type> - get_in_edges(Vertex v, Graph& g) const + auto get_in_edges(Vertex v, Graph& g) const { return in_edges_range(v, g); } template - int get_out_degree(Vertex& v, Graph& g, Weight& eweight) const + auto get_out_degree(Vertex& v, Graph& g, Weight& eweight) const { return out_degreeS()(v, g, eweight); } template - int get_in_degree(Vertex& v, Graph& g, Weight& eweight) const + auto get_in_degree(Vertex& v, Graph& g, Weight& eweight) const { return in_degreeS()(v, g, eweight); } @@ -1480,8 +1478,9 @@ double entries_dS(MEntries& m_entries, Eprop& mrs, EMat& emat, BGraph& bg) double dS = 0; for (size_t i = 0; i < entries.size(); ++i) { - auto er = entries[i].first; - auto es = entries[i].second; + auto& ei = entries[i]; + auto er = ei.first; + auto es = ei.second; int d = delta[i]; size_t ers = d_mrs[i]; if (ers == numeric_limits::max()) -- GitLab