

@raises(nx.NetworkXError)
def test_non_positive_weights(self):
    G = nx.DiGraph()
    G.add_weighted_edges_from([(0, 1, 0)])
    nx.local_reaching_centrality(self, 0, weight='weight')

dataset/ETHPy150Open networkx/networkx/networkx/algorithms/centrality/tests/test_reaching.py TestLocalReachingCentrality.test_non_positive_weights/VarMisuse@45/59 `G`->`self`