class_docstr: Unit tests for the :func:`networkx.algorithms.approximation.max_clique`
  function.
docstr: Tests that the maximal clique is computed according to maximum
  cardinality of the sets.
  
  For more information, see pull request #1531.
docstr_tok: ["Tests","that","the","maximal","clique","is","computed","according","to","maximum","cardinality","of","the","sets",".","For","more","information",",","see","pull","request","#","1531","."]
code: def test_maximal_by_cardinality(self):
      """Tests that the maximal clique is computed according to maximum
      cardinality of the sets.
  
      For more information, see pull request #1531.
  
      """
      G = nx.complete_graph(5)
      G.add_edge(4, 5)
      clique = max_clique(G)
      assert len(clique) > 1
  
      G = nx.lollipop_graph(30, 2)
      clique = max_clique(G)
      assert len(clique) > 2
  
file_path: networkx/networkx/algorithms/approximation/tests/test_clique.py
imports: import networkx
  from networkx.algorithms.approximation import clique_removal, large_clique_size, max_clique, maximum_independent_set
label_desc: Use image node_id 3 for calling the TestMaxClique obj's underlying member method code with example usage: obj.test_maximal_by_cardinality() without return types