Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jeff Trull
graph-tool
Commits
399d74aa
Commit
399d74aa
authored
Jun 29, 2020
by
Tiago Peixoto
Browse files
konect.py: fix parsing of node properties
parent
16af6550
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/collection/konect.py
View file @
399d74aa
...
...
@@ -61,7 +61,7 @@ def load_koblenz_dir(dirname):
count
=
0
for
line
in
open
(
os
.
path
.
join
(
root
,
f
)):
vals
=
line
.
split
()
if
len
(
vals
)
==
1
and
vals
[
0
]
==
"%"
:
if
len
(
vals
)
==
0
or
(
len
(
vals
)
==
1
and
vals
[
0
]
==
"%"
)
:
continue
if
vals
[
0
]
==
"%"
:
g
.
gp
.
meta_desc
=
g
.
new_graph_property
(
"string"
,
line
)
...
...
Write
Preview
Supports
Markdown
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