networkx.from_whatever
networkx.from_dict_of_lists
Enter search terms or a module, class or function name.
Return adjacency representation of graph as a dictionary of lists
G : graph
A NetworkX graph
nodelist : list
Use only nodes specified in nodelist
Notes
Completely ignores edge data for MultiGraph and MultiDiGraph.