Patch for pgr_kdijkstra returning wrong edges/cost (xcalibur666)

https://gist.github.com/xcalibur666/7983406