52d4535b61cd82bc82a1ebb79d8dc66c5c50856e,python/dgl/graph_index.py,HeteroGraphIndex,find_edges,#HeteroGraphIndex#Any#Any#,1611
 
Before Change
        eid_array = eid.todgltensor()
        edge_array = _CAPI_DGLHeteroFindEdges(self, int(etype), eid_array)
        src = utils.toindex(edge_array(0))
        dst = utils.toindex(edge_array(1))
        eid = utils.toindex(edge_array(2))
        return src, dst, eid
After Change
            indptr = F.copy_to(utils.toindex(rst(0)).tousertensor(), ctx)
            indices = F.copy_to(utils.toindex(rst(1)).tousertensor(), ctx)
            shuffle = utils.toindex(rst(2))
            dat = F.ones(indices.shape, dtype=F.float32, ctx=ctx)
            spmat = F.sparse_matrix(dat, ("csr", indices, indptr),
                                    (self.number_of_nodes(), self.number_of_nodes()))[0]
            return spmat, shuffle

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
 Project Name: dmlc/dgl
 Commit Name: 52d4535b61cd82bc82a1ebb79d8dc66c5c50856e
 Time: 2019-08-23
 Author: coin2028@hotmail.com
 File Name: python/dgl/graph_index.py
 Class Name: HeteroGraphIndex
 Method Name: find_edges
 Project Name: dmlc/dgl
 Commit Name: b0e02e5b5262e09d9c0e2e52a6a0a6f10525d29d
 Time: 2018-10-05
 Author: zhengda1936@gmail.com
 File Name: python/dgl/subgraph.py
 Class Name: DGLSubGraph
 Method Name: __init__
 Project Name: dmlc/dgl
 Commit Name: 84702916d36ad0b35a508cbce77d0ee36e0fedb6
 Time: 2019-06-04
 Author: xianyu.zeng@transwarp.io
 File Name: tests/compute/test_nodeflow.py
 Class Name: 
 Method Name: test_block_adj_matrix