I have a directed acyclic graph with one end node and many start nodes. In this graph each node can be junction, pier or both. Each edge have specific distance. I have two think