code: def testSimplify(self):
      el = [(0, 1), (1, 0), (1, 2), (2, 3), (2, 3), (2, 3), (3, 3)]
      g = Graph(el)
      g.es["weight"] = [1, 2, 3, 4, 5, 6, 7]
  
      g2 = g.copy()
      g2.simplify()
      self.assertTrue(g2.vcount() == g.vcount())
      self.assertTrue(g2.ecount() == 3)
  
      g2 = g.copy()
      g2.simplify(loops=False)
      self.assertTrue(g2.vcount() == g.vcount())
      self.assertTrue(g2.ecount() == 4)
  
      g2 = g.copy()
      g2.simplify(multiple=False)
      self.assertTrue(g2.vcount() == g.vcount())
      self.assertTrue(g2.ecount() == g.ecount() - 1)
  
imports: import unittest
  from igraph import Graph, disjoint_union, intersection, union
label_desc: Use image node_id 28 for calling the OperatorTests obj's underlying member method code with example usage: obj.testSimplify() without return types