Update weighted_betweenness.R