code: def from_dict(cls, d):
          
          s = Structure.from_dict(d['structure'])
          return cls(s, d['graphs'])
docs: As in :Class: `pymatgen.core.Structure` except
          restoring graphs using `from_dict_of_dicts`
          from NetworkX to restore graph information.