Added API method in the Router API to save graph to disk