(aignet-rollback n aignet) rewinds the aignet so that node
Logically this is just:
(lookup-id n aignet)
The guard requires that there are no next-state nodes that will be removed; this is because the implementation of removing a next-state node is somewhat more complicated than other kinds.