fixed script, error with break boundary in calculate_centrality