ImpulseGraph.
__len__
Return the number of nodes. Use: ‘len(G)’.
Examples
>>> G = dnx.IntervalGraph() >>> G.add_nodes_from([2, 4, 5]) >>> len(G) 3