docstr: Betweenness centrality: star
docstr_tok: ["Betweenness","centrality",":","star"]
code: def test_star(self):
      """Betweenness centrality: star"""
      G = nx.Graph()
      nx.add_star(G, ["a", "b", "c", "d"])
      b = nx.current_flow_betweenness_centrality(G, normalized=True)
      b_answer = {"a": 1.0, "b": 0.0, "c": 0.0, "d": 0.0}
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
  
imports: import pytest
  import networkx
  from networkx import approximate_current_flow_betweenness_centrality
  from networkx import edge_current_flow_betweenness_centrality
label_desc: Use image node_id 5 for calling the TestFlowBetweennessCentrality obj's underlying member method code with example usage: obj.test_star() without return types