Commit 0cb5e19d authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_blockmodel.hh: Some trivial cosmetic changes

parent e8393974
Pipeline #102 failed with stage
...@@ -970,27 +970,25 @@ inline size_t get_mrs(Vertex r, Vertex s, const Eprop& mrs, const Emat& emat, ...@@ -970,27 +970,25 @@ inline size_t get_mrs(Vertex r, Vertex s, const Eprop& mrs, const Emat& emat,
struct standard_neighbours_policy struct standard_neighbours_policy
{ {
template <class Graph, class Vertex> template <class Graph, class Vertex>
IterRange<typename out_edge_iteratorS<Graph>::type> auto get_out_edges(Vertex v, Graph& g) const
get_out_edges(Vertex v, Graph& g) const
{ {
return out_edges_range(v, g); return out_edges_range(v, g);
} }
template <class Graph, class Vertex> template <class Graph, class Vertex>
IterRange<typename in_edge_iteratorS<Graph>::type> auto get_in_edges(Vertex v, Graph& g) const
get_in_edges(Vertex v, Graph& g) const
{ {
return in_edges_range(v, g); return in_edges_range(v, g);
} }
template <class Graph, class Vertex, class Weight> template <class Graph, class Vertex, class Weight>
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); return out_degreeS()(v, g, eweight);
} }
template <class Graph, class Vertex, class Weight> template <class Graph, class Vertex, class Weight>
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); return in_degreeS()(v, g, eweight);
} }
...@@ -1480,8 +1478,9 @@ double entries_dS(MEntries& m_entries, Eprop& mrs, EMat& emat, BGraph& bg) ...@@ -1480,8 +1478,9 @@ double entries_dS(MEntries& m_entries, Eprop& mrs, EMat& emat, BGraph& bg)
double dS = 0; double dS = 0;
for (size_t i = 0; i < entries.size(); ++i) for (size_t i = 0; i < entries.size(); ++i)
{ {
auto er = entries[i].first; auto& ei = entries[i];
auto es = entries[i].second; auto er = ei.first;
auto es = ei.second;
int d = delta[i]; int d = delta[i];
size_t ers = d_mrs[i]; size_t ers = d_mrs[i];
if (ers == numeric_limits<size_t>::max()) if (ers == numeric_limits<size_t>::max())
......
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