docstr: Betweenness centrality: K4
docstr_tok: ["Betweenness","centrality",":","K4"]
code: def test_K4_normalized(self):
      """Betweenness centrality: K4"""
      G = nx.complete_graph(4)
      b = nx.current_flow_betweenness_centrality(G, normalized=True)
      b_answer = {0: 0.25, 1: 0.25, 2: 0.25, 3: 0.25}
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
      G.add_edge(0, 1, weight=0.5, other=0.3)
      b = nx.current_flow_betweenness_centrality(
          G, normalized=True, weight=None
      )
      for n in sorted(G):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
      wb_answer = {
          0: 0.2222222,
          1: 0.2222222,
          2: 0.30555555,
          3: 0.30555555,
      }
      b = nx.current_flow_betweenness_centrality(
          G, normalized=True, weight="weight"
      )
      for n in sorted(G):
          assert b[n] == pytest.approx(wb_answer[n], abs=1e-7)
      wb_answer = {
          0: 0.2051282,
          1: 0.2051282,
          2: 0.33974358,
          3: 0.33974358,
      }
      b = nx.current_flow_betweenness_centrality(
          G, normalized=True, weight="other"
      )
      for n in sorted(G):
          assert b[n] == pytest.approx(wb_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 1 for calling the TestFlowBetweennessCentrality obj's underlying member method code with example usage: obj.test_K4_normalized() without return types