import functions within calc_centrality