class_docstr: Unit tests for the :func:`~networkx.boundary_expansion` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.boundary_expansion","`","function","."]
code: def test_graph(self):
      G = nx.complete_graph(10)
      S = set(range(4))
      expansion = nx.boundary_expansion(G, S)
      # The node boundary of S has cardinality six, and S has
      # cardinality three.
      expected = 6 / 4
      assert expected == expansion
  
imports: import networkx
label_desc: Use image node_id 1 for calling the TestBoundaryExpansion obj's underlying member method code with example usage: obj.test_graph() without return types