

@raises(nx.NetworkXError)
def test_negatively_weighted(self):
    G = nx.Graph()
    G.add_weighted_edges_from([(0, 1, (- 2)), (1, 2, (+ 1))])
    nx.local_reaching_centrality(G, 0, weight='weight')

dataset/ETHPy150Open networkx/networkx/networkx/algorithms/centrality/tests/test_reaching.py TestLocalReachingCentrality.test_negatively_weighted/original