def test_C4(self):
        G=nx.cycle_graph(4)
        b=nx.edge_betweenness_centrality(G, weight=None, normalized=True)
        b_answer={(0, 1):2,(0, 3):2, (1, 2):2, (2, 3): 2}
        for n in sorted(G.edges()):
            assert_almost_equal(b[n],b_answer[n]/6.0)
Upload a distribution for a project version.
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/centrality/tests/test_betweenness_centrality.py/TestEdgeBetweennessCentrality.test_C4--crossover with--dataset/ETHPy150Open jessemyers/cheddar/cheddar/index/index.py/Index.upload_distribution