* @return A Map where the the key is the vertex (V) and the value is
* a POJO with result of metrics, named <code>BetweennessMeasure</code>.
*/
public static <V, E> Map<V, Double> calcule(final Graph<V, E> graph) {
BarycenterScorer<V, E> bs = new BarycenterScorer(graph);
Map<V, Double> result = new HashMap<>(graph.getVertexCount());
for (V v : graph.getVertices()) {
result.put(v, bs.getVertexScore(v));
}
return result;
}