Return a graph from a dictionary of dictionaries.
Parameters : | d : dictionary of dictionaries
create_using : NetworkX graph
multigraph_input : bool (default False)
|
---|
Examples
>>> dod= {0: {1:{'weight':1}}} # single edge (0,1)
>>> G=nx.from_dict_of_dicts(dod)
or >>> G=nx.Graph(dod) # use Graph constructor