I'm using networkx in Python as a functional interface to graph methods and assorted utilities. I want to create a list with all neighbours of a node in a graph.
The webpage states that all_neighbors(graph, node), returns iterator. What does that mean? How do I save the neighbours in a list?