def count_set_bits(n):
    return 1 + count_set_bits(n & n - 1) if n else 0
Betweenness centrality: disconnected path endpoints
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_math.py/count_set_bits--crossover with--dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/centrality/tests/test_betweenness_centrality.py/TestBetweennessCentrality.test_disconnected_path_endpoints