a81d27dc67a9c14435b3bd9bf7122fa0871bf76e,python/dgl/cgraph.py,DGLGraph,edge_ids,#DGLGraph#Any#Any#,63

Before Change



    def edge_ids(self, u, v):
        u = utils.Index(u)
        v = utils.Index(v)
        u_array = F.asdglarray(u.totensor())
        v_array = F.asdglarray(v.totensor())
        return _CAPI_DGLGraphEdgeIds(self._handle, u_array, v_array)

    def in_edges(self, v):
        if isinstance(v, int):

After Change


            Teh edge id array.
        
        u_array = u.todgltensor()
        v_array = v.todgltensor()
        return utils.Index(_CAPI_DGLGraphEdgeIds(self._handle, u_array, v_array))

    def in_edges(self, v):
        Return the in edges of the node(s).
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: edge_ids


Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: has_edges


Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: out_degrees


Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: in_degrees