All vertices have even degree
The graph is Eulerian. Every edge can be used exactly once in one closed route.
So there is nothing extra to repeat. Find an Euler circuit and come back to the starting vertex.
How to decide what must be repeated
The postman must cover every edge and finish where the route started. The first job is not to look at the weights. First count the degree of each vertex. The odd vertices tell us what has to be repeated. After that, the weights tell us the cheapest repetition.
Start with the degrees. Do not search for a route immediately. Once the odd vertices are known, the problem falls into one of the three cases below.
The graph is Eulerian. Every edge can be used exactly once in one closed route.
So there is nothing extra to repeat. Find an Euler circuit and come back to the starting vertex.
Find the shortest path joining the two odd vertices. Repeat that path once.
In the final route, the vertices and edges on that shortest path will appear again. The added cost comes from those repeated edges.
For four odd vertices, make the three possible pairings. For each pair, use the shortest path between the two vertices.
Add the two shortest-path costs in each pairing. Choose the pairing with the smallest total. Repeat those two paths. Now every degree is even.
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Check the degrees. Every vertex has even degree. So no extra edge has to be repeated.
Step 2: Add the original edge weights.
Step 3: Trace an Euler circuit. One possible route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Check the degrees. Every vertex has even degree. So no extra edge has to be repeated.
Step 2: Add the original edge weights.
Step 3: Trace an Euler circuit. One possible route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Check the degrees. Every vertex has even degree. So no extra edge has to be repeated.
Step 2: Add the original edge weights.
Step 3: Trace an Euler circuit. One possible route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Check the degrees. Every vertex has even degree. So no extra edge has to be repeated.
Step 2: Add the original edge weights.
Step 3: Trace an Euler circuit. One possible route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. The odd vertices are E and F.
Step 2: Find the cheapest way to join them. The shortest path is E → D → F, with cost 18.
This is the part we repeat. After repeating this path, the two odd vertices become even.
Step 3: Add the repeated cost.
Step 4: Trace the closed route. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. The odd vertices are B and D.
Step 2: Find the cheapest way to join them. The shortest path is B → F → E → D, with cost 8.
This is the part we repeat. After repeating this path, the two odd vertices become even.
Step 3: Add the repeated cost.
Step 4: Trace the closed route. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. The odd vertices are B and E.
Step 2: Find the cheapest way to join them. The shortest path is B → C → E, with cost 7.
This is the part we repeat. After repeating this path, the two odd vertices become even.
Step 3: Add the repeated cost.
Step 4: Trace the closed route. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. The odd vertices are A and G.
Step 2: Find the cheapest way to join them. The shortest path is A → E → F → G, with cost 23.
This is the part we repeat. After repeating this path, the two odd vertices become even.
Step 3: Add the repeated cost.
Step 4: Trace the closed route. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. They are B, D, E, F.
Step 2: Pair the odd vertices. With four odd vertices there are three possible pairings. For each pairing, use the shortest path between the paired vertices.
| Pairing | Shortest paths | Extra cost |
|---|---|---|
| B with E D with F | B → E = 5 D → F = 2 | 5 + 2 = 7 |
| B with D E with F | B → C → D = 9 E → D → F = 7 | 9 + 7 = 16 |
| B with F E with D | B → C → D → F = 11 E → D = 5 | 11 + 5 = 16 |
Step 3: Choose the smallest extra cost. The best pairing is B with E, and D with F. The repeated cost is 7.
Step 4: Trace the Euler circuit after repeating those paths. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. They are A, B, D, E.
Step 2: Pair the odd vertices. With four odd vertices there are three possible pairings. For each pairing, use the shortest path between the paired vertices.
| Pairing | Shortest paths | Extra cost |
|---|---|---|
| B with D E with A | B → D = 5 E → F → A = 9 | 5 + 9 = 14 |
| B with E D with A | B → F → E = 11 D → F → A = 10 | 11 + 10 = 21 |
| B with A D with E | B → F → A = 8 D → F → E = 13 | 8 + 13 = 21 |
Step 3: Choose the smallest extra cost. The best pairing is B with D, and E with A. The repeated cost is 14.
Step 4: Trace the Euler circuit after repeating those paths. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. They are A, B, C, D.
Step 2: Pair the odd vertices. With four odd vertices there are three possible pairings. For each pairing, use the shortest path between the paired vertices.
| Pairing | Shortest paths | Extra cost |
|---|---|---|
| A with B C with D | A → B = 9 C → E → D = 8 | 9 + 8 = 17 |
| A with C B with D | A → E → C = 10 B → E → D = 9 | 10 + 9 = 19 |
| A with D B with C | A → D = 10 B → C = 8 | 10 + 8 = 18 |
Step 3: Choose the smallest extra cost. The best pairing is A with B, and C with D. The repeated cost is 17.
Step 4: Trace the Euler circuit after repeating those paths. One possible optimal route from A is:
Find the minimum total weight of a closed route that uses every edge at least once and returns to the starting vertex. Also give one optimal route starting from A.
Step 1: Find the odd vertices. They are B, C, E, F.
Step 2: Pair the odd vertices. With four odd vertices there are three possible pairings. For each pairing, use the shortest path between the paired vertices.
| Pairing | Shortest paths | Extra cost |
|---|---|---|
| B with C E with F | B → A → C = 15 E → C → A → G → F = 24 | 15 + 24 = 39 |
| B with E C with F | B → A → C → E = 19 C → A → G → F = 20 | 19 + 20 = 39 |
| B with F C with E | B → A → G → F = 25 C → E = 4 | 25 + 4 = 29 |
Step 3: Choose the smallest extra cost. The best pairing is B with F, and C with E. The repeated cost is 29.
Step 4: Trace the Euler circuit after repeating those paths. One possible optimal route from A is: