graph.addEdge(coluns[2] + " (" + i + ")", coluns[1], coluns[0]);
}
}
BetweennessCentrality<String, String> btw = new BetweennessCentrality<>(graph);
DistanceCentralityScorer<String, String> dst = new DistanceCentralityScorer(graph, false);
ClosenessCentrality<String, String> cls = new ClosenessCentrality<>(graph);
DegreeScorer<String> dgr = new DegreeScorer<>(graph);
List<AuxUserMetrics> userMetrics = new ArrayList<>();
for (String vertex : graph.getVertices()) {
userMetrics.add(new AuxUserMetrics(vertex,
btw.getVertexScore(vertex), // betweeness
dst.getVertexScore(vertex), // distance
dgr.getVertexScore(vertex), // degree
cls.getVertexScore(vertex))); // closeness
}
addToEntityMetricNodeList(userMetrics);