10 #ifndef META_GRAPH_ALGORITHMS_CENTRALITY_H_
11 #define META_GRAPH_ALGORITHMS_CENTRALITY_H_
25 using centrality_result = std::vector<std::pair<node_id, double>>;
33 template <
class Graph>
34 centrality_result degree_centrality(
const Graph& g);
44 template <
class Graph>
45 centrality_result betweenness_centrality(
const Graph& g);
54 template <
class Graph>
55 centrality_result eigenvector_centrality(
const Graph& g,
56 uint64_t max_iters = 100);
66 template <
class Graph>
68 std::mutex& calc_mut);