I am trying to use pgrouting's shortestpath function. It returns a set of edges for the shortest path. However, the start node of the next edge is not the end node of the previous edge. I mean they are not connected. So while displaying I am joining the end node of the first edge to the start node of the next edge.
However, I am seeing that the coordinates are repeating. I am not sure why, For eg plotting just the coordinates of the start and end node of each edge, I have something like this:
start end
A B
C D
A E
As you can see the coordinates are repeating like A,A in the previous case. As a result there are lots of lines crossing over.
Any suggestions or clarifications?