BetweennessCentrality<Double> betweennessCentrality = new BetweennessCentrality<Double>(
singleSourceShortestPath, graph.getAllNodes() );
StressCentrality<Double> stressCentrality = new StressCentrality<Double>(
singleSourceShortestPath, graph.getAllNodes() );
ClosenessCentrality<Double> closenessCentrality = new ClosenessCentrality<Double>(
singleSourceShortestPath, new DoubleAdder(), 0.0, graph
.getAllNodes(), new CostDivider<Double>()
{
public Double divideByCost( Double d, Double c )
{
return d / c;