statespace graph
Excercise 7
only solutions withou cycles now