c.compute();
return c.getGiantComponent();
}
private static void centrality(Graph graph) {
ClosenessCentrality c = new ClosenessCentrality("centrality");
c.init(graph);
c.compute();
Node maxNode = null;
double maxCentrality = 0.0;
for (Node node : graph) {