abstraction of traversable surfaces through graph