updated adgeEdgeToPrev function