def METHOD_NAME(self):
    g = Graph.Tree(121, 3, mode="out")
    self.assertTrue(g.is_acyclic())
    g = Graph()
    self.assertTrue(g.is_acyclic())
    g = Graph.Ring(5)
    self.assertFalse(g.is_acyclic())