Add some boring boilerplate for loading/dumping graphs