class_docstr: Unit tests for the :func:`~networkx.edge_boundary` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.edge_boundary","`","function","."]
code: def test_complete_graph(self):
      K10 = cnlti(nx.complete_graph(10), first_label=1)
  
      def ilen(iterable):
          return sum(1 for i in iterable)
  
      assert list(nx.edge_boundary(K10, [])) == []
      assert list(nx.edge_boundary(K10, [], [])) == []
      assert ilen(nx.edge_boundary(K10, [1, 2, 3])) == 21
      assert ilen(nx.edge_boundary(K10, [4, 5, 6, 7])) == 24
      assert ilen(nx.edge_boundary(K10, [3, 4, 5, 6, 7])) == 25
      assert ilen(nx.edge_boundary(K10, [8, 9, 10])) == 21
      assert edges_equal(
          nx.edge_boundary(K10, [4, 5, 6], [9, 10]),
          [(4, 9), (4, 10), (5, 9), (5, 10), (6, 9), (6, 10)],
      )
      assert edges_equal(
          nx.edge_boundary(K10, [1, 2, 3], [3, 4, 5]),
          [
              (1, 3),
              (1, 4),
              (1, 5),
              (2, 3),
              (2, 4),
              (2, 5),
              (3, 4),
              (3, 5),
          ],
      )
  
imports: from itertools import combinations
  import pytest
  import networkx
  from networkx import convert_node_labels_to_integers
  from networkx.utils import edges_equal
label_desc: Use image node_id 3 for calling the TestEdgeBoundary obj's underlying member method code with example usage: obj.test_complete_graph() and returns: sum