class_docstr: Unit tests for the :func:`~networkx.edge_expansion` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.edge_expansion","`","function","."]
code: def test_graph(self):
      G = nx.barbell_graph(5, 0)
      S = set(range(5))
      T = set(G) - S
      expansion = nx.edge_expansion(G, S, T)
      expected = 1 / 5
      assert expected == expansion
      # Test with no input T
      assert expected == nx.edge_expansion(G, S)
  
imports: import networkx
label_desc: Use image node_id 1 for calling the TestEdgeExpansion obj's underlying member method code with example usage: obj.test_graph() without return types