def test_neg_four(self):
     clusters = [(1,2), (2, 3), (3,4), (4,5), (5,6)]
     g = construct(clusters)
     self.assertFalse(check_problematic_row(g))
 def test_one(self):
     clusters = [(1,2), (2,3), (1,3)]
     g = construct(clusters)
     self.assertTrue(check_problematic_row(g))
 def test_neg_two(self):
     clusters = [(1,2), (3,4)]
     g = construct(clusters)
     self.assertFalse(check_problematic_row(g))
 def test_empty_graph(self):
     g = nx.DiGraph()
     self.assertFalse(check_problematic_row(g))