Commit 399d74aa authored by Tiago Peixoto's avatar Tiago Peixoto

konect.py: fix parsing of node properties

parent 16af6550
......@@ -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)
......
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