第12章グラフ理論
Identifying Euler Circuitsオイラー回路を見きわめる
Solving the Chinese postman problem requires finding a shortest circuit through any graph or multigraph that visits every edge. In the case of Eulerian graphs, this means finding an Euler circuit. The method we will use is to find any circuit in the graph, then find a second circuit starting at a vertex from the first circuit that uses only edges that were not in the first circuit, then find a third circuit starting at a vertex from either of the first two circuits that uses only edges that were not in the first two circuits, and then continue this process until all edges have been used. In the end, you will be able to link all the circuits together into one large Euler circuit.
英語のヒント
中国人郵便配達問題を解くには、すべての辺を訪れる、グラフや多重グラフの最短の回路を見つける必要がある。オイラーグラフの場合、これはオイラー回路を見つけることを意味する。使う方法は、グラフの何らかの回路を見つけ、次に最初の回路の頂点から始まり最初の回路にない辺だけを使う2つ目の回路を見つけ、次に最初の2つの回路のどちらかの頂点から始まり最初の2つの回路にない辺だけを使う3つ目の回路を見つけ、すべての辺を使うまでこの処理を続けるものである。最後に、すべての回路をつないで1つの大きなオイラー回路にできる。
Let’s find an Euler circuit in the map of the Camp Woebegone canoe race. In Figure 12.119, we have labeled the edges of the multigraph so that the circuits can be named. In a multigraph it is necessary to name circuits using edges and vertices because there can be more than one edge between adjacent vertices.
英語のヒント
キャンプ・ウォービゴーンのカヌーレースの地図でオイラー回路を見つけよう。図12.119で、回路を名づけられるように多重グラフの辺にラベルをつけた。多重グラフでは、隣接する頂点のあいだに複数の辺がありうるので、辺と頂点を使って回路を名づける必要がある。

Figure 12.119図12.119
Multigraph of Canoe Race with Vertices and Edges Labeled
英語のヒント
頂点と辺にラベルをつけたカヌーレースの多重グラフ
We will begin with vertex 1 because it represents the starting line in this application. In general, you can start at any vertex you want. Find any circuit beginning and ending with vertex 1. Remember, a circuit is a trail, so it doesn’t pass through any edge more than once. Figure 12.120 shows one possible circuit that we could use as the first circuit, 1 → A → 2 → B → 3 → C → 4 → G → 5 → J → 1.
英語のヒント
この応用ではスタートラインを表すので、頂点1から始める。一般には、どの頂点から始めてもよい。頂点1で始まり終わる何らかの回路を見つける。回路は小道なので、どの辺も2回以上通らないことを思い出そう。図12.120は、最初の回路として使えるありうる回路の1つ、1 → A → 2 → B → 3 → C → 4 → G → 5 → J → 1を示している。

Figure 12.120図12.120
First Circuit
英語のヒント
最初の回路
From the edges that remain, we can form two more circuits that each start at one of the vertices along the first circuit. Starting at vertex 3 we can use 3 → H → 5 → I → 1 → K → 3 and starting at vertex 2 we can use 2 → D → 6 → E → 7 → F → 2, as shown in Figure 12.121.
英語のヒント
残りの辺から、それぞれ最初の回路の頂点の1つで始まる回路をさらに2つ作れる。図12.121に示すように、頂点3から始めて3 → H → 5 → I → 1 → K → 3を、頂点2から始めて2 → D → 6 → E → 7 → F → 2を使える。

Figure 12.121図12.121
Second and Third Circuits
英語のヒント
2つ目と3つ目の回路
Now that each of the edges is included in one and only once circuit, we can create one large circuit by inserting the second and third circuits into the first. We will insert them at their starting vertices 2 and 3
英語のヒント
各辺が1つの回路だけに含まれるようになったので、2つ目と3つ目の回路を最初の回路に挿入して1つの大きな回路を作れる。それらを出発の頂点2と3に挿入する
becomes
英語のヒント
は次のようになる
Finally, we can name the circuit using vertices, 1 → 2 → 6 → 7 → 2 → 3 → 5 → 1 → 3 → 4 → 5 → 1, or edges, A → D → E → F → B → H → I → K → C → G → J.
英語のヒント
最後に、頂点を使って回路を1 → 2 → 6 → 7 → 2 → 3 → 5 → 1 → 3 → 4 → 5 → 1と、辺を使ってA → D → E → F → B → H → I → K → C → G → Jと名づけられる。
Let's review the steps we used to find this Eulerian Circuit.
英語のヒント
このオイラー回路を見つけるのに使った手順を見直そう。
Steps to Find an Euler Circuit in an Eulerian Graph
英語のヒント
オイラーグラフのオイラー回路を見つける手順
Step 1 - Find a circuit beginning and ending at any point on the graph. If the circuit crosses every edges of the graph, the circuit you found is an Euler circuit. If not, move on to step 2.
英語のヒント
手順1 - グラフの任意の点で始まり終わる回路を見つける。回路がグラフのすべての辺を渡るなら、見つけた回路はオイラー回路である。そうでなければ、手順2へ進む。
Step 2 - Beginning at a vertex on a circuit you already found, find a circuit that only includes edges that have not previously been crossed. If every edge has been crossed by one of the circuits you have found, move on to Step 3. Otherwise, repeat Step 2.
英語のヒント
手順2 - すでに見つけた回路の頂点から始めて、まだ渡っていない辺だけを含む回路を見つける。すべての辺が見つけた回路のどれかで渡られたら、手順3へ進む。そうでなければ、手順2を繰り返す。
Step 3 - Now that you have found circuits that cover all of the edges in the graph, combine them into an Euler circuit. You can do this by inserting any of the circuits into another circuit with a common vertex repeatedly until there is one long circuit.
英語のヒント
手順3 - グラフのすべての辺を通る回路を見つけたので、それらをオイラー回路に組み合わせる。1つの長い回路になるまで、回路を共通の頂点をもつ別の回路に繰り返し挿入すればよい。
Example 12.27例題 12.27
Finding an Euler Circuitオイラー回路を見つける

Figure 12.122図12.122
Graph F
英語のヒント
グラフF
- Verify the Graph F is Eulerian.
英語のヒント
グラフFがオイラーグラフであることを確かめよ。 - Find an Euler circuit that begins and ends at vertex c.
英語のヒント
頂点cで始まり終わるオイラー回路を見つけよ。
Solution解答
- The graph is connected because it has only one component. Also, each of the vertices in graph F has even degree as shown in Figure 12.123. So, the graph is Eulerian.
英語のヒント
グラフは成分が1つだけなので連結である。また、図12.123に示すように、グラフFの各頂点の次数は偶数である。だから、グラフはオイラーグラフである。
Figure 12.123図12.123Degrees of Vertices in Graph F英語のヒント
グラフFの頂点の次数 - Step 1: Beginning at vertex c, identify circuit c → e → b → c as shown in Figure 12.124. Since this circuit does not cover every edge in the graph, move on to Step 2.
英語のヒント
手順1:頂点cから始めて、図12.124に示すように回路c → e → b → cを見きわめる。この回路はグラフのすべての辺を通らないので、手順2へ進む。
Figure 12.124図12.124First Circuit in Graph F英語のヒント
グラフFの最初の回路Step 2: Find another circuit beginning at one of the vertices in the first circuit, using only edges that have not been used in the first circuit. It is possible to do this using either vertex c or vertex b. In Figure 12.125, we have used vertex b as the starting and ending point for a second circuit, b → d → c → a → b. Since all edges have been crossed by one of the two circuits, move on to Step 3.英語のヒント
手順2:最初の回路の頂点の1つから始め、最初の回路で使っていない辺だけを使う別の回路を見つける。頂点cか頂点bを使ってこれができる。図12.125で、頂点bを2つ目の回路b → d → c → a → bの出発点と終点に使った。すべての辺が2つの回路のどちらかで渡られたので、手順3へ進む。
Figure 12.125図12.125Second Circuit in Graph F英語のヒント
グラフFの2つ目の回路Step 3: Combine the two circuits into one. Replace vertex b in the first circuit with the whole second circuit that begins at vertex b.英語のヒント
手順3:2つの回路を1つにまとめる。最初の回路の頂点bを、頂点bで始まる2つ目の回路全体で置きかえる。.An Euler circuit that begins at vertex c is c → e → b → d → c → a → b → c.英語のヒント
頂点cで始まるオイラー回路はc → e → b → d → c → a → b → cである。