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