Return graph from node-link data format.
Parameters : | data : dict
directed : bool
multigraph : bool
|
---|---|
Returns : | G : NetworkX graph
|
See also
Examples
>>> from networkx.readwrite import json_graph
>>> G = nx.Graph([(1,2)])
>>> data = json_graph.node_link_data(G)
>>> H = json_graph.node_link_graph(data)