Commit 6b88e088 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Fix bug left from 1.00 API-rewrite..

parent afd89ef3
......@@ -35,8 +35,8 @@ def edge_labels(edges, edgegroups=[], suppress_default=True):
m = str(metric)
if metric == 10 and suppress_default:
m = ""
if type.endswith("opath") and x != w:
m = "%s (%s)" % (str(int(x)), str(int(w)))
if type.endswith("opath") and x['weight'] != w['weight']:
m = "%s (%s)" % (str(int(x['weight'])), str(int(w['weight'])))
l = (i, m, type.startswith('main'))
labels.append((i, m, type.startswith('main')))
edgedone[(u,v)] = l
......
Supports Markdown
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