storing graph obj on disk