048f6d7a30ceb8d7f85190e927489215261fa106,python/dgl/graph_index.py,GraphIndex,edges,#GraphIndex#Any#,333

Before Change


        src = utils.toindex(edge_array(0))
        dst = utils.toindex(edge_array(1))
        eid = utils.toindex(edge_array(2))
        return src, dst, eid

    def in_degree(self, v):
        Return the in degree of the node.

After Change


        utils.Index
            The edge ids.
        
        key = "edges_s%d" % sorted
        if key not in self._cache:
            edge_array = _CAPI_DGLGraphEdges(self._handle, sorted)
            src = utils.toindex(edge_array(0))
            dst = utils.toindex(edge_array(1))
            eid = utils.toindex(edge_array(2))
            self._cache[key] = (src, dst, eid)
        return self._cache[key]

    def in_degree(self, v):
        Return the in degree of the node.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: dmlc/dgl
Commit Name: 048f6d7a30ceb8d7f85190e927489215261fa106
Time: 2018-11-13
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: edges


Project Name: MolSSI/QCEngine
Commit Name: 38a2c28f9885e13e080cd04ec1b967a19c427d63
Time: 2019-05-16
Author: lori.burns@gmail.com
File Name: qcengine/programs/mp2d.py
Class Name: MP2DExecutor
Method Name: get_version


Project Name: MolSSI/QCEngine
Commit Name: 38a2c28f9885e13e080cd04ec1b967a19c427d63
Time: 2019-05-16
Author: lori.burns@gmail.com
File Name: qcengine/programs/torchani.py
Class Name: TorchANIExecutor
Method Name: get_version