Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.readwrite.json_graph.jit_data

jit_data(G, indent=None)[source]

Returns data in JIT JSON format.

Parameters
  • G (NetworkX Graph)

  • indent (optional, default=None) – If indent is a non-negative integer, then JSON array elements and object members will be pretty-printed with that indent level. An indent level of 0, or negative, will only insert newlines. None (the default) selects the most compact representation.

Returns

data

Return type

JIT JSON string