MCPcopy
hub / github.com/dmlc/dgl / num_nodes

Method num_nodes

python/dgl/graph_index.py:164–172  ·  view source on GitHub ↗

Return the number of nodes. Returns ------- int The number of nodes.

(self)

Source from the content-addressed store, hash-verified

162 self.__setstate__(state)
163
164 def num_nodes(self):
165 """Return the number of nodes.
166
167 Returns
168 -------
169 int
170 The number of nodes.
171 """
172 return _CAPI_DGLGraphNumVertices(self)
173
174 def num_edges(self):
175 """Return the number of edges.

Callers 6

__getstate__Method · 0.95
adjacency_matrixMethod · 0.95
incidence_matrixMethod · 0.95
to_networkxMethod · 0.95
bits_neededMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected