Graph based management of temporal data