結果 : explain shortest path problem with example