Show all-pairs shortest path reduces to single-source case

Analyze the show all-pairs shortest path reduces to single-source case.

Examples
Input: "test_input_1"
Output: "output_1"
Hints

Show all-pairs shortest path reduces to single-source case

Analyze the show all-pairs shortest path reduces to single-source case.