code: def test_add_edge_nonstring(self):
      self.G.add_edge(1, 2)
      self.assertCountEqual(list(self.G.nodes()), [1, 2])
      self.assertListEqual(list(self.G.edges()), [(1, 2)])
      self.assertEqual(self.G.dependent, 1)
      self.assertSetEqual(self.G.features, {2})
  
      self.G.add_nodes_from([3, 4])
      self.G.add_edge(1, 3)
      self.G.add_edge(1, 4)
      self.assertCountEqual(list(self.G.nodes()), [1, 2, 3, 4])
      self.assertCountEqual(
          list(self.G.edges()), [(1, 2), (1, 3), (1, 4)]
      )
      self.assertEqual(self.G.dependent, 1)
      self.assertSetEqual(self.G.features, {2, 3, 4})
  
      self.assertRaises(ValueError, self.G.add_edge, 2, 3)
      self.assertRaises(ValueError, self.G.add_edge, 3, 6)
      self.assertRaises(ValueError, self.G.add_edge, 5, 6)
      self.assertRaises(
          ValueError, self.G.add_edges_from, [(1, 5), (2, 6)]
      )
      self.assertRaises(ValueError, self.G.add_edges_from, [(2, 6)])
  
imports: import unittest
  import networkx
  import pandas
  import numpy
  from pgmpy.models import NaiveBayes
  from pgmpy.independencies import Independencies
label_desc: Use image node_id 10 for calling the TestBaseModelCreation obj's underlying member method code with example usage: obj.test_add_edge_nonstring() without return types