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
35653ddd
Unverified
Commit
35653ddd
authored
Dec 04, 2019
by
VoVAllen
Committed by
GitHub
Dec 04, 2019
Browse files
[Fix] Fix karate due to networkx version change
parent
5fc7eb6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/data/karate.py
python/dgl/data/karate.py
+1
-1
No files found.
python/dgl/data/karate.py
View file @
35653ddd
...
@@ -18,7 +18,7 @@ class KarateClub(object):
...
@@ -18,7 +18,7 @@ class KarateClub(object):
def
__init__
(
self
):
def
__init__
(
self
):
kG
=
nx
.
karate_club_graph
()
kG
=
nx
.
karate_club_graph
()
self
.
label
=
np
.
array
(
self
.
label
=
np
.
array
(
[
kG
.
node
[
i
][
'club'
]
!=
'Mr. Hi'
for
i
in
kG
.
nodes
]).
astype
(
np
.
int64
)
[
kG
.
node
s
[
i
][
'club'
]
!=
'Mr. Hi'
for
i
in
kG
.
nodes
]).
astype
(
np
.
int64
)
g
=
DGLGraph
(
kG
)
g
=
DGLGraph
(
kG
)
g
.
ndata
[
'label'
]
=
self
.
label
g
.
ndata
[
'label'
]
=
self
.
label
self
.
data
=
[
g
]
self
.
data
=
[
g
]
...
...
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