Make a NetworkX graph from a known data structure.
The preferred way to call this is automatically from the class constructor
>>> d={0: {1: {'weight':1}}} # dict-of-dicts single edge (0,1)
>>> G=nx.Graph(d)
instead of the equivalent
>>> G=nx.from_dict_of_dicts(d)
Parameters: | data : a object to be converted
create_using : NetworkX graph
multigraph_input : bool (default False)
|
---|