code: def testGetSubisomorphismsLAD(self):
      g = Graph.Lattice([3, 3], circular=False)
      g2 = Graph([(0, 1), (1, 2), (2, 3), (3, 0)])
      g3 = g + [
          (0, 4),
          (2, 4),
          (6, 4),
          (8, 4),
          (3, 1),
          (1, 5),
          (5, 7),
          (7, 3),
      ]
  
      all_subiso = "0143 0341 1034 1254 1430 1452 2145 2541 3014 3410 3476 \
          3674 4103 4125 4301 4367 4521 4587 4763 4785 5214 5412 5478 5874 6347 \
          6743 7436 7458 7634 7854 8547 8745"
      all_subiso = sorted(
          [int(x) for x in item] for item in all_subiso.split()
      )
  
      self.assertEqual(
          all_subiso, sorted(g.get_subisomorphisms_lad(g2))
      )
      self.assertEqual([], sorted(g2.get_subisomorphisms_lad(g)))
  
      # Test 'induced'
      induced_subiso = "1375 1573 3751 5731 7513 7315 5137 3157"
      induced_subiso = sorted(
          [int(x) for x in item] for item in induced_subiso.split()
      )
      self.assertEqual(
          induced_subiso,
          sorted(g3.get_subisomorphisms_lad(g2, induced=True)),
      )
      self.assertEqual([], g3.get_subisomorphisms_lad(g, induced=True))
  
      # Test with limited vertex matching
      limited_subiso = [iso for iso in all_subiso if iso[0] == 4]
      domains = [
          [4],
          [0, 1, 2, 3, 5, 6, 7, 8],
          [0, 1, 2, 3, 5, 6, 7, 8],
          [0, 1, 2, 3, 5, 6, 7, 8],
      ]
      self.assertEqual(
          limited_subiso,
          sorted(g.get_subisomorphisms_lad(g2, domains=domains)),
      )
      domains = [
          [],
          [0, 1, 2, 3, 5, 6, 7, 8],
          [0, 1, 2, 3, 5, 6, 7, 8],
          [0, 1, 2, 3, 5, 6, 7, 8],
      ]
      self.assertEqual(
          [], sorted(g.get_subisomorphisms_lad(g2, domains=domains))
      )
  
      # Corner cases
      empty = Graph()
      self.assertEqual([[]], g.get_subisomorphisms_lad(empty))
      self.assertEqual([[]], empty.get_subisomorphisms_lad(empty))
  
imports: import unittest
  from random import shuffle
  from igraph import Graph
label_desc: Use image node_id 2 for calling the SubisomorphismTests obj's underlying member method code with example usage: obj.testGetSubisomorphismsLAD() without return types