Added 'transitions' object with 'out' and depth-first search methods