class_docstr: Unit tests for the global reaching centrality function.
class_docstr_tok: ["Unit","tests","for","the","global","reaching","centrality","function","."]
code: def test_undirected_weighted_star(self):
      G = nx.Graph()
      G.add_weighted_edges_from([(1, 2, 1), (1, 3, 2)])
      grc = nx.global_reaching_centrality
      assert grc(G, normalized=False, weight="weight") == 0.375
  
file_path: networkx/networkx/algorithms/centrality/tests/test_reaching.py
imports: import pytest
  import networkx
label_desc: Use image node_id 5 for calling the TestGlobalReachingCentrality obj's underlying member method code with example usage: obj.test_undirected_weighted_star() without return types