dgl.DGLGraph.number_of_nodes

DGLGraph.number_of_nodes(ntype=None)

Alias of num_nodes()