[bugfix] incorrect betweenness centrality score for undirected traversal