Finds the shortest path between two locations and constructs the minimal cost network