Write betweenness calculations