How many states are there? It seems that even for a small number of vertices of the underlying graph, we have a large number of states. This suspicion is confirmed as follows:
In the animal example:
So overall there are 6 · 5 · 4 · 3 ·2 = 720 states in our animal example.
Such a number n · (n-1) · (n-2) · ... · 3 · 2 is abbreviated as n! and pronounced "n factorial"
In the same way, in the 15 puzzle there are 15! = 1,307,674,368,000 states. More than 1 trillion states.