653428bdc7880ebc45b759e675df09ae6eb146f8,python/dgl/graph_index.py,GraphIndex,edges,#GraphIndex#Any#,409

Before Change


            edge_array = _CAPI_DGLGraphEdges(self._handle, order)
            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.

After Change


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

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

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/dgl
Commit Name: 653428bdc7880ebc45b759e675df09ae6eb146f8
Time: 2019-06-06
Author: ly979@nyu.edu
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: edges


Project Name: dmlc/dgl
Commit Name: bc3f852dab30cb2b920fddd7455a623d82ca3a6a
Time: 2018-10-17
Author: coin2028@hotmail.com
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: edge_ids


Project Name: dmlc/dgl
Commit Name: 7241a9c0086167fbad1f41068f8d8640c6502980
Time: 2018-11-04
Author: minjie.wang@nyu.edu
File Name: python/dgl/immutable_graph_index.py
Class Name: ImmutableGraphIndex
Method Name: has_edges_between