Added betweenness function.