9b4d60799a25409506a73ef4fbaa640a9c4e9ee2,python/dgl/heterograph.py,DGLBaseHeteroGraph,number_of_nodes,#DGLBaseHeteroGraph#Any#,235

Before Change


        >>> g["user"].number_of_nodes()
        3
        
        return self._graph.number_of_nodes(self._ntypes_invmap[ntype])

    def _number_of_src_nodes(self):
        Return number of source nodes (only used in scheduler)

After Change


        >>> g["user"].number_of_nodes()
        3
        
        return self._graph.number_of_nodes(self.get_ntype_id(ntype))

    def number_of_edges(self, etype=None):
        Return the number of edges of the given type in the heterograph.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: 9b4d60799a25409506a73ef4fbaa640a9c4e9ee2
Time: 2019-09-17
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/heterograph.py
Class Name: DGLBaseHeteroGraph
Method Name: number_of_nodes


Project Name: dmlc/dgl
Commit Name: 9b4d60799a25409506a73ef4fbaa640a9c4e9ee2
Time: 2019-09-17
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/heterograph.py
Class Name: DGLBaseHeteroGraph
Method Name: has_nodes


Project Name: dmlc/dgl
Commit Name: 9b4d60799a25409506a73ef4fbaa640a9c4e9ee2
Time: 2019-09-17
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/heterograph.py
Class Name: DGLHeteroGraph
Method Name: node_attr_schemes


Project Name: dmlc/dgl
Commit Name: 9b4d60799a25409506a73ef4fbaa640a9c4e9ee2
Time: 2019-09-17
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/heterograph.py
Class Name: DGLBaseHeteroGraph
Method Name: has_node