Warning

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

networkx.readwrite.json_graph.cytoscape_data

cytoscape_data(G, attrs=None)[source]

Return data in Cytoscape JSON format (cyjs).

Parameters:G (NetworkX Graph)
Returns:data – A dictionary with cyjs formatted data.
Return type:dict
Raises:NetworkXError – If values in attrs are not unique.