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
DAGwhendata["dag"]is true (raisingCycleErrorif the edges contain a cycle), aDiGraphwhendata["directed"]is true, else aGraph.