class_docstr: Test the DiGraph structure we use to represent dependencies in PackageExporter
code: def test_edges(self):
      g = DiGraph()
      g.add_edge(1, 2)
      g.add_edge(2, 3)
      g.add_edge(1, 3)
      g.add_edge(4, 5)
  
      edge_list = list(g.edges)
      self.assertEqual(len(edge_list), 4)
  
      self.assertIn((1, 2), edge_list)
      self.assertIn((2, 3), edge_list)
      self.assertIn((1, 3), edge_list)
      self.assertIn((4, 5), edge_list)
  
file_path: pytorch/test/package/test_digraph.py
imports: from torch.package._digraph import DiGraph
  from torch.testing._internal.common_utils import run_tests
label_desc: Use image node_id 7 for calling the TestDiGraph obj's underlying member method code with example usage: obj.test_edges() without return types