Graph.to_json

Graph.to_json(filepath, pretty=False)

Serialise the structured data representing the datastructure to json.

Parameters

filepath (str) – The path to the json file.