Compressed k d -tree for temporal graphs