docstr: Closeness centrality: star
docstr_tok: ["Closeness","centrality",":","star"]
code: def test_star(self):
      """Closeness centrality: star"""
      G = nx.Graph()
      nx.add_star(G, ["a", "b", "c", "d"])
      b = nx.current_flow_closeness_centrality(G)
      b_answer = {
          "a": 1.0 / 3,
          "b": 0.6 / 3,
          "c": 0.6 / 3,
          "d": 0.6 / 3,
      }
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
  
file_path: networkx/networkx/algorithms/centrality/tests/test_current_flow_closeness.py
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling the TestFlowClosenessCentrality obj's underlying member method code with example usage: obj.test_star() without return types