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

Method number_of_edges

python/dgl/heterograph.py:2681–2683  ·  view source on GitHub ↗

Alias of :func:`num_edges`

(self, etype=None)

Source from the content-addressed store, hash-verified

2679 return self._graph.num_nodes(self.get_ntype_id_from_dst(ntype))
2680
2681 def number_of_edges(self, etype=None):
2682 """Alias of :func:`num_edges`"""
2683 return self.num_edges(etype)
2684
2685 def num_edges(self, etype=None):
2686 """Return the number of edges in the graph.

Callers 15

build_graph_trainFunction · 0.95
from_networkxFunction · 0.45
bipartite_from_networkxFunction · 0.45
test_edgegat_convFunction · 0.45
test_edgegat_conv_biFunction · 0.45
test_gatedgcn_convFunction · 0.45

Calls 1

num_edgesMethod · 0.95