Update centralityMetrics.py