Use method path::reverse in roadmap::addNodeAndEdge.