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

Method number_of_src_nodes

python/dgl/heterograph.py:2541–2543  ·  view source on GitHub ↗

Alias of :meth:`num_src_nodes`

(self, ntype=None)

Source from the content-addressed store, hash-verified

2539 return self._graph.num_nodes(self.get_ntype_id(ntype))
2540
2541 def number_of_src_nodes(self, ntype=None):
2542 """Alias of :meth:`num_src_nodes`"""
2543 return self.num_src_nodes(ntype)
2544
2545 def num_src_nodes(self, ntype=None):
2546 """Return the number of source nodes in the graph.

Callers 15

__repr__Method · 0.80
forwardMethod · 0.80
test_graph_conv2Function · 0.80
test_graph_conv2_biFunction · 0.80
test_gat_convFunction · 0.80
test_gat_conv_biFunction · 0.80
test_sage_convFunction · 0.80
test_sage_conv_biFunction · 0.80
test_agnn_convFunction · 0.80
test_agnn_conv_biFunction · 0.80
test_dense_graph_convFunction · 0.80
test_dense_sage_convFunction · 0.80

Calls 1

num_src_nodesMethod · 0.95

Tested by 15

test_graph_conv2Function · 0.64
test_graph_conv2_biFunction · 0.64
test_gat_convFunction · 0.64
test_gat_conv_biFunction · 0.64
test_sage_convFunction · 0.64
test_sage_conv_biFunction · 0.64
test_agnn_convFunction · 0.64
test_agnn_conv_biFunction · 0.64
test_dense_graph_convFunction · 0.64
test_dense_sage_convFunction · 0.64
test_edge_convFunction · 0.64
test_edge_conv_biFunction · 0.64