Add graph version serialization and debug