Skip to main content

to_json

Function to_json 

Source
pub fn to_json(graph: &Graph) -> String
Expand description

Serialize a graph to pretty-printed JSON.

This format is intended for debugging and inspection. For production use, prefer the binary format which is more compact.