Chinese Postman Problem

The Chinese postman problem asks for the shortest route that covers all the edges in a graph, starting and ending at the same vertex. The route may repeat some edges. The total distance traversed is the sum of the lengths of all the edges in the route. There are many possibilities, which can be generated using random graphs or other techniques.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


To determine the shortest path:
1. Find the degree of each vertex. If there is a pair of vertices of odd degree, the graph is semi-Eulerian. If there are more than two vertices of odd degree, the graph is non-Eulerian.
2. Create additional paths using pairs of vertices of odd degree.
3. Determine the minimum of these additional paths.
4. Trace a possible route starting and ending at a particular vertex.
5. Calculate the total distance traveled.
There may be more than one possible route.
[1] Wikipedia. "Route Inspection problem." (Aug 8, 2016)
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.