Compass interview question

Handling non sequential data using graphs