move timestamps in graphs to edges