Fix GraphWrapper.toJSON
Implement graph save/load for GraphML and GraphSON formats.