graphscope.nx.classes.function.infoΒΆ
- graphscope.nx.classes.function.info(G, n=None)[source]ΒΆ
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.
- Parameters:
G (Networkx graph) β A graph
n (node (any hashable)) β A node in the graph G
- Returns:
info β A string containing the short summary
- Return type:
str
- Raises:
NetworkXError β If n is not in the graph G
.. deprecated: β 2.7:
infois deprecated and will be removed in NetworkX 3.0.