docstr: Edge betweenness centrality: C4
docstr_tok: ["Edge","betweenness","centrality",":","C4"]
code: def test_C4(self):
      """Edge betweenness centrality: C4"""
      G = nx.cycle_graph(4)
      b = nx.edge_betweenness_centrality(
          G, weight="weight", normalized=False
      )
      b_answer = {(0, 1): 2, (0, 3): 2, (1, 2): 2, (2, 3): 2}
      for n in sorted(G.edges()):
          assert b[n] == pytest.approx(b_answer[n], abs=1e-7)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling the TestWeightedEdgeBetweennessCentrality obj's underlying member method code with example usage: obj.test_C4() without return types