

def test_cycle_directed_weighted(self):
    G = nx.DiGraph()
    G.add_edge(1, 2, weight=1)
    G.add_edge(2, 1, weight=1)
    assert_equal(nx.global_reaching_centrality(G, weight='weight'), 0)

dataset/ETHPy150Open networkx/networkx/networkx/algorithms/centrality/tests/test_reaching.py TestGlobalReachingCentrality.test_cycle_directed_weighted/original