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