Making EdgePartition serializable.