dgl.DGLGraph.number_of_edges

DGLGraph.number_of_edges()

Return the number of edges in the graph.

Returns:The number of edges
Return type:int