use dijkstra path reconstruction to show paths between pairs of clicked nodes