67dc11971f9f7878e28496dc28382923598557ea,python/dgl/graph_index.py,GraphIndex,edge_subgraph,#GraphIndex#Any#Any#,541

Before Change


        e_array = e.todgltensor()
        rst = _CAPI_DGLGraphEdgeSubgraph(self._handle, e_array, preserve_nodes)
        induced_nodes = utils.toindex(rst(1))
        gidx = GraphIndex(rst(0))
        return SubgraphIndex(gidx, self, induced_nodes, e)

    @utils.cached_member(cache="_cache", prefix="scipy_adj")
    def adjacency_matrix_scipy(self, transpose, fmt):

After Change


        e_array = e.todgltensor()
        rst = _CAPI_DGLGraphEdgeSubgraph(self, e_array, preserve_nodes)
        induced_nodes = utils.toindex(rst(1))
        gidx = rst(0)
        return SubgraphIndex(gidx, self, induced_nodes, e)

    @utils.cached_member(cache="_cache", prefix="scipy_adj")
    def adjacency_matrix_scipy(self, transpose, fmt):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: 67dc11971f9f7878e28496dc28382923598557ea
Time: 2019-07-23
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: edge_subgraph


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: node_subgraph


Project Name: dmlc/dgl
Commit Name: 67dc11971f9f7878e28496dc28382923598557ea
Time: 2019-07-23
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: node_subgraph