- info(G, n=None)¶
Return a summary of information for the graph G or a single node n.
The summary includes the number of nodes and edges, or neighbours for a single node.
- GNetworkx graph
- nnode (any hashable)
A node in the graph G
A string containing the short summary
If n is not in the graph G