Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
b3d596b5
Unverified
Commit
b3d596b5
authored
Oct 06, 2019
by
Quan (Andy) Gan
Committed by
GitHub
Oct 06, 2019
Browse files
extend warning to other adjacency_matrix() calls (#904)
parent
bce51cbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python/dgl/graph.py
python/dgl/graph.py
+1
-1
python/dgl/heterograph.py
python/dgl/heterograph.py
+1
-1
No files found.
python/dgl/graph.py
View file @
b3d596b5
...
@@ -3073,7 +3073,7 @@ class DGLGraph(DGLBaseGraph):
...
@@ -3073,7 +3073,7 @@ class DGLGraph(DGLBaseGraph):
transpose
=
False
transpose
=
False
return
self
.
_graph
.
adjacency_matrix_scipy
(
transpose
,
fmt
,
return_edge_ids
)
return
self
.
_graph
.
adjacency_matrix_scipy
(
transpose
,
fmt
,
return_edge_ids
)
def
adjacency_matrix
(
self
,
transpose
=
Fals
e
,
ctx
=
F
.
cpu
()):
def
adjacency_matrix
(
self
,
transpose
=
Non
e
,
ctx
=
F
.
cpu
()):
"""Return the adjacency matrix representation of this graph.
"""Return the adjacency matrix representation of this graph.
By default, a row of returned adjacency matrix represents the
By default, a row of returned adjacency matrix represents the
...
...
python/dgl/heterograph.py
View file @
b3d596b5
...
@@ -1385,7 +1385,7 @@ class DGLHeteroGraph(object):
...
@@ -1385,7 +1385,7 @@ class DGLHeteroGraph(object):
hg
=
DGLHeteroGraph
(
hgidx
,
induced_ntypes
,
induced_etypes
,
node_frames
,
edge_frames
)
hg
=
DGLHeteroGraph
(
hgidx
,
induced_ntypes
,
induced_etypes
,
node_frames
,
edge_frames
)
return
hg
return
hg
def
adjacency_matrix
(
self
,
transpose
=
Fals
e
,
ctx
=
F
.
cpu
(),
scipy_fmt
=
None
,
etype
=
None
):
def
adjacency_matrix
(
self
,
transpose
=
Non
e
,
ctx
=
F
.
cpu
(),
scipy_fmt
=
None
,
etype
=
None
):
"""Return the adjacency matrix of edges of the given edge type.
"""Return the adjacency matrix of edges of the given edge type.
By default, a row of returned adjacency matrix represents the
By default, a row of returned adjacency matrix represents the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment