def test_graph_equals_when_not_same_edges(self):
     g1 = nx.DiGraph()
     g1.add_nodes_from([1, 2, 3, 4])
     g1.add_edge(1, 2)
     g1.add_edge(2, 3)
     g2 = nx.DiGraph()
     g2.add_nodes_from([1, 2, 3])
     g2.add_edge(1, 2)
     g2.add_edge(2, 3)
     self.assertFalse(utils.graph_equals(g1, g2, weight_column_name=None))
 def test_graph_equals_when_different_edge_weights(self):
     g1 = nx.DiGraph()
     g1.add_nodes_from([1, 2, 3])
     g1.add_edge(1, 2, weight='5')
     g1.add_edge(2, 3, weight='-1')
     g1.add_edge(1, 3, weight='1')
     g2 = nx.DiGraph()
     g2.add_nodes_from([1, 2, 3])
     g2.add_edge(1, 2, weight='5')
     g2.add_edge(2, 3, weight='9')
     g2.add_edge(1, 3, weight='1')
     self.assertFalse(
         utils.graph_equals(g1, g2, weight_column_name='weight'))