Gets port to port shortest path