"examples/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "a8ce095724d69ccc5c296b7486a41841047b2274"
Unverified Commit 8b35cbc8 authored by Andrei Ivanov's avatar Andrei Ivanov Committed by GitHub
Browse files

Improving the DEEPWALK example. (#6070)


Co-authored-by: default avatarHongzhi (Steve), Chen <chenhongzhi.nkcs@gmail.com>
parent a1a3ce89
...@@ -117,7 +117,7 @@ def net2graph(net_sm): ...@@ -117,7 +117,7 @@ def net2graph(net_sm):
G DGLGraph : graph by DGL G DGLGraph : graph by DGL
""" """
start = time.time() start = time.time()
G = dgl.DGLGraph(net_sm) G = dgl.from_scipy(net_sm)
end = time.time() end = time.time()
t = end - start t = end - start
print("Building DGLGraph in %.2fs" % t) print("Building DGLGraph in %.2fs" % t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment