Revert "graph: introduce GapState"

This reverts commit 2b58491572175c661b676cca37bffbd5898781c9.