Make sure to add path when source and target

This commit is contained in:
mrg 2021-03-01 11:37:42 -08:00
parent 7c15773e17
commit 5ab67214e5
1 changed files with 1 additions and 0 deletions

View File

@ -1055,6 +1055,7 @@ class router(router_tech):
# Double check source and taget are not same node, if so, we are done!
for k, v in self.rg.map.items():
if v.source and v.target:
self.paths.append([k])
return True
# returns the path in tracks