>>> g["user"].number_of_nodes()
3
return self._graph.number_of_nodes(self._ntypes_invmap[ntype])
def _number_of_src_nodes(self):
Return number of source nodes (only used in scheduler)
After Change
>>> g["user"].number_of_nodes()
3
return self._graph.number_of_nodes(self.get_ntype_id(ntype))
def number_of_edges(self, etype=None):
Return the number of edges of the given type in the heterograph.