C++11
Only flip start and end set if A* is calculated. This will correct the visit map and shortest path tree for problems with only length regularization
Bug fix: shortest-path-tree; edge pairs starting in the start_set was handeld incorrectly.