

def test_undirected_weighted_star(self):
    G = nx.Graph()
    G.add_edge(1, 2, weight=1)
    G.add_edge(1, 3, weight=2)
    centrality = nx.local_reaching_centrality(G, 1, weight='weight', normalized=False)
    assert_equal(centrality, 1.5)

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