dgl.DGLHeteroGraph.number_of_nodes

DGLHeteroGraph.number_of_nodes(ntype=None)[source]

Alias of num_nodes()