implemented reverse map to get correct point/package from graph