From 6957fbf954a3a9f4394a49ba9b55fa050010a221 Mon Sep 17 00:00:00 2001 From: goramos Date: Mon, 19 Sep 2016 19:01:16 -0300 Subject: [PATCH] Small fix related with dedges' name --- KSP.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/KSP.py b/KSP.py index f380762..e1b487b 100755 --- a/KSP.py +++ b/KSP.py @@ -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). ''' @@ -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])