Return graph from node-link data format.
Parameters: | data : dict
directed : bool
multigraph : bool
attrs : dict
|
---|---|
Returns: | G : NetworkX graph
|
See also
Notes
The default value of attrs will be changed in a future release of NetworkX.
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)