NetworkX

Previous topic

networkx.MultiDiGraph.number_of_nodes

Next topic

networkx.MultiDiGraph.size

Quick search

networkx.MultiDiGraph.__len__

MultiDiGraph.__len__()

Return the number of nodes. Use “len(G)”.

Examples

>>> G=nx.path_graph(4)
>>> print len(G)
4