Switches to use 1/weight for betweenness centrality.