Feature/serialization preserving graph identity