Hi, I found that when calling path_setedge function, the modified edge looses its bidirectional property set in WED and is no longer available from the other end node through path_getedge.
Yes - this is no bug, but a missing info in the documentation. When you set the edge length, use a negative value for a bidirectional edge. This will be added to the manual.