Skip to content

Commit

Permalink
Small fix related with dedges' name
Browse files Browse the repository at this point in the history
  • Loading branch information
goramos committed Sep 19, 2016
1 parent 24d4c62 commit 6957fbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion KSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
and (vi) minor issues.
v1.31 (25-Aug-2016) - Small fixes related to edges names; according to the current network
specification, links are named with a dash (A-B) rather than a pipe (A|B).
v1.32 (19-Set-2016) - Small fix related with dedges' name (A-B is named A-B in the forward link
but B-A in the backward one).
<new versions here>
'''
Expand Down Expand Up @@ -124,7 +126,7 @@ def generateGraph(graph_file):
# create the edge(s)
E.append(Edge(taglist[1], taglist[2], taglist[3], cost))
if taglist[0] == 'edge':
E.append(Edge(taglist[1], taglist[3], taglist[2], cost))
E.append(Edge('%s-%s'%(taglist[3], taglist[2]), taglist[3], taglist[2], cost))

elif taglist[0] == 'od':
OD.append(taglist[1])
Expand Down

0 comments on commit 6957fbf

Please sign in to comment.