pylibmgm.io.save_to_disk
- pylibmgm.io.save_to_disk(filepath: os.PathLike, solution: pylibmgm.MgmSolution) None
Save a MGM solution to disk in JSON format.
- Parameters:
filepath (os.PathLike) – If filepath is a directory, the solution will be stored in a generically named file. Optionally, include the filename in the filepath to control the output file name.
solution (MgmSolution or GmSolution) – The MGM solution to save.
- pylibmgm.io.save_to_disk(filepath: os.PathLike, solution: pylibmgm.GmSolution) None
Save a GM solution to disk in JSON format.
- Parameters:
filepath (os.PathLike) – If filepath is a directory, the solution will be stored in a generically named file. Optionally, include the filename in the filepath to control the output file name.
solution (MgmSolution or GmSolution) – The GM solution to save.