

def test_undirected_weighted_star(self):
    G = nx.Graph()
    G.add_edge(1, 2, weight=1)
    G.add_edge(1, 3, weight=2)
    assert_equal(nx.global_reaching_centrality(G, normalized=False), 0.25)

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