迷路のデータ構造をグラフに変換しようとしています。迷路は、グリッドとセル間のいくつかの壁のようなものです。
maze[8][8][4] is how the maze is represented.
If maze[i][j][0] = 1 it means you can't go up from (i,j)
if maze[i][j][1] = 1 it means you can't go down from (i,j)
// and so on
この迷路をグラフに変換したいのですが、どうすればよいですか?