0d0f44363c2542096d2a84dfaded34ad7f16fa04,python/dgl/traversal.py,,bfs_edges_generator,#Any#Any#Any#,51
Before Change
[tensor([0]), tensor([1, 2]), tensor([4, 5])]
ghandle = graph._graph._handle
source = utils.toindex(source).todgltensor()
ret = _CAPI_DGLBFSEdges(ghandle, source, reversed)
all_edges = utils.toindex(ret(0)).tousertensor()
// TODO(minjie): how to support directly creating python list
sections = utils.toindex(ret(1)).tonumpy().tolist()
After Change
[tensor([0]), tensor([1, 2]), tensor([4, 5])]
ghandle = graph._graph._handle
source = utils.toindex(source)
ret = _CAPI_DGLBFSEdges(ghandle, source.todgltensor(), reversed)
all_edges = utils.toindex(ret(0)).tousertensor()
// TODO(minjie): how to support directly creating python list
sections = utils.toindex(ret(1)).tonumpy().tolist()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: dmlc/dgl
Commit Name: 0d0f44363c2542096d2a84dfaded34ad7f16fa04
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/traversal.py
Class Name:
Method Name: bfs_edges_generator
Project Name: dmlc/dgl
Commit Name: 0d0f44363c2542096d2a84dfaded34ad7f16fa04
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/traversal.py
Class Name:
Method Name: dfs_labeled_edges_generator
Project Name: dmlc/dgl
Commit Name: 0d0f44363c2542096d2a84dfaded34ad7f16fa04
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/traversal.py
Class Name:
Method Name: dfs_edges_generator
Project Name: dmlc/dgl
Commit Name: 0d0f44363c2542096d2a84dfaded34ad7f16fa04
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/traversal.py
Class Name:
Method Name: bfs_nodes_generator