code: def as_dict(self):
          
  
          d = {"@module": self.__class__.__module__,
               "@class": self.__class__.__name__,
               "molecule": self.molecule.as_dict(),
               "graphs": json_graph.adjacency_data(self.graph)}
  
          return d
docs: As in :Class: `pymatgen.core.Molecule` except
          with using `to_dict_of_dicts` from NetworkX
          to store graph information.