code: def graphs_equal(self, H, G):
      assert G._adj == H._adj
      assert G._node == H._node
      assert G.graph == H.graph
      assert G.name == H.name
      if not G.is_directed() and not H.is_directed():
          assert H._adj[1][2] is H._adj[2][1]
          assert G._adj[1][2] is G._adj[2][1]
      else:  # at least one is directed
          if not G.is_directed():
              G._pred = G._adj
              G._succ = G._adj
          if not H.is_directed():
              H._pred = H._adj
              H._succ = H._adj
          assert G._pred == H._pred
          assert G._succ == H._succ
          assert H._succ[1][2] is H._pred[2][1]
          assert G._succ[1][2] is G._pred[2][1]
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 5 for calling the TestInducedSubGraph obj's underlying member method code with example usage: obj.graphs_equal(H, G) without return types