Maze extends the Graph trait.