code: def testTriangularLattice(self):
      g = Graph.Triangular_Lattice([2, 2])
      self.assertEqual(
          sorted(g.get_edgelist()),
          [(0, 1), (0, 2), (0, 3), (1, 3), (2, 3)],
      )
  
      g = Graph.Triangular_Lattice([2, 2], directed=True, mutual=False)
      self.assertEqual(
          sorted(g.get_edgelist()),
          [(0, 1), (0, 2), (0, 3), (1, 3), (2, 3)],
      )
  
      g = Graph.Triangular_Lattice([2, 2], directed=True, mutual=True)
      self.assertEqual(
          sorted(g.get_edgelist()),
          [
              (0, 1),
              (0, 2),
              (0, 3),
              (1, 0),
              (1, 3),
              (2, 0),
              (2, 3),
              (3, 0),
              (3, 1),
              (3, 2),
          ],
      )
  
imports: import unittest
  from igraph import Graph, InternalError
label_desc: Use image node_id 13 for calling the GeneratorTests obj's underlying member method code with example usage: obj.testTriangularLattice() without return types