to_dict_of_lists#
- to_dict_of_lists(G, nodelist=None)[source]#
Returns adjacency representation of graph as a dictionary of lists.
- Parameters:
- Ggraph
A NetworkX graph
- nodelistlist
Use only nodes specified in nodelist
Notes
Completely ignores edge data for MultiGraph and MultiDiGraph.
Additional backends implement this function
cugraph : GPU-accelerated backend.