The main function of the paclet is SolveMaze. Solve the mazes.
Square maze solution:
In[34]:=
squareMazeSolution=SolveMaze[gridMaze]
Out[34]=
Triangular maze solution:
In[35]:=
triangularMazeSolution=SolveMaze[triangularMaze]
Out[35]=
Hexagonal maze solution:
In[36]:=
hexagonalMazeSolution=SolveMaze[hexagonalMaze]
There's also a function that will generate an equilateral triangle.
Make a maze:
Solve the maze:
The problem with this function is it doesn't regularly tile the plane. You can't specify a different width and height, which you can do with TriangularGridGraph.
You can only generate a 12 equilateral triangle or a 24 equilateral triangle.
You can represent a maze with a tree:
You can contract the edges of the tree of the graph.