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

Method number_of_nodes

python/dgl/heterograph.py:2489–2491  ·  view source on GitHub ↗

Alias of :meth:`num_nodes`

(self, ntype=None)

Source from the content-addressed store, hash-verified

2487 #################################################################
2488
2489 def number_of_nodes(self, ntype=None):
2490 """Alias of :meth:`num_nodes`"""
2491 return self.num_nodes(ntype)
2492
2493 def num_nodes(self, ntype=None):
2494 """Return the number of nodes in the graph.

Callers 15

adjMethod · 0.95
build_graph_trainFunction · 0.95
test_edgegat_convFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
validate_reldn.pyFile · 0.45
train_reldn.pyFile · 0.45

Calls 1

num_nodesMethod · 0.95

Tested by 3

test_edgegat_convFunction · 0.36