Let's start from our designated starting point, the "top left" of the first cube face, going right. This means we are going clockwise along the edge of the net.
We want to trace the edge and trying to match the "edge cells",
which is represented by a cell, and its direction when we traversed them clockwisely.
Using the sample as example, the first edge is (1,9,>)
.
If the current edge does not match other edge, we simply push that into a stack.
We go along the edge, stopping every N times to determine which turn do we take on the net. This is done by going one step out and check myself and my left.