on-the-fly graph