aryagraph.io.jsonio.from_dict#

aryagraph.io.jsonio.from_dict(data: Mapping[str, Any], *, node_key: str = 'id', source: str = 'source', target: str = 'target') → Graph[source]#

Graph from a node-link dictionary (AryaGraph, networkx or d3 flavour).

Returns a DAG when data["dag"] is true (raising CycleError if the edges contain a cycle), a DiGraph when data["directed"] is true, else a Graph.