第12章グラフ理論
Finding an Euler Trail with Fleury’s Algorithmフルーリーのアルゴリズムでオイラー小道を見つける
Now that we are familiar with bridges, we can use a technique called Fleury’s algorithm, which is a series of steps, or algorithm, used to find an Euler trail in any graph that has exactly two vertices of odd degree.
英語のヒント
橋に慣れたので、フルーリーのアルゴリズムという手法を使える。これは、奇数の次数の頂点がちょうど2つあるグラフでオイラー小道を見つけるのに使う一連の手順、つまりアルゴリズムである。
Here are the steps involved in applying Fleury’s algorithm.
英語のヒント
フルーリーのアルゴリズムを当てはめる手順は次のとおりである。
Step 1: Begin at either of the two vertices of odd degree.
英語のヒント
手順1:奇数の次数の2つの頂点のどちらかから始める。
Step 2: Remove an edge between the vertex and any adjacent vertex that is NOT a bridge, unless there is no other choice, making a note of the edge you removed. Repeat this step until all edges are removed.
英語のヒント
手順2:ほかに選択肢がないのでなければ、その頂点と隣接する頂点のあいだの橋でない辺を除き、除いた辺を記録する。すべての辺を除くまでこの手順を繰り返す。
Step 3: Write out the Euler trail using the sequence of vertices and edges that you found. For example, if you removed ab, bc, cd, de, and ef, in that order, then the Euler trail is a → b → c → d → e → f.
英語のヒント
手順3:見つけた頂点と辺の列を使ってオイラー小道を書き出す。たとえば、ab、bc、cd、de、efをこの順に除いたなら、オイラー小道はa → b → c → d → e → fである。
Figure 12.142 shows the steps to find an Euler trail in a graph using Fleury’s algorithm.
英語のヒント
図12.142は、フルーリーのアルゴリズムを使ってグラフのオイラー小道を見つける手順を示している。

Figure 12.142図12.142
Using Fleury’s Algorithm To Find Euler Trail
英語のヒント
フルーリーのアルゴリズムを使ってオイラー小道を見つける
The Euler trail that was found in Figure 12.142 is t → v → w → u → t → w → y → x → v.
英語のヒント
図12.142で見つけたオイラー小道はt → v → w → u → t → w → y → x → vである。
Example 12.31例題 12.31
Finding an Euler Trail with Fleury’s Algorithmフルーリーのアルゴリズムでオイラー小道を見つける
Use Fleury’s Algorithm to find an Euler trail for Graph J in Figure 12.143.
英語のヒント
フルーリーのアルゴリズムを使って、図12.143のグラフJのオイラー小道を見つけよ。

Figure 12.143図12.143
Graph J
英語のヒント
グラフJ
Solution解答
Step 1: Choose one of the two vertices of odd degree, c or f, as your starting vertex. We will choose c.
英語のヒント
手順1:奇数の次数の2つの頂点cかfのどちらかを出発の頂点に選ぶ。cを選ぶ。
Step 2: Remove edge ca, cb, or cd. None of these are cut edges so we can select any of the three. We will choose cb as shown in Figure 12.144 to be the first edge removed.
英語のヒント
手順2:辺ca、cb、cdのどれかを除く。これらはどれもカット辺ではないので、3つのどれを選んでもよい。図12.144に示すように、cbを最初に除く辺に選ぶ。

Figure 12.144図12.144
Graph J with cb Removed
英語のヒント
cbを除いたグラフJ
Repeat Step 2 The next choice is to remove edge ba, bd, or bf as shown in Figure 12.144, but bf is not an option since it is a bridge. We will choose ba as shown in Figure 12.145 to be the second edge removed.
英語のヒント

Figure 12.145図12.145
Graph J with cb and ba Removed
英語のヒント
cbとbaを除いたグラフJ
Repeat Step 2 for the third, fourth, fifth, sixth, and seventh edges. As shown in Figure 12.145, until we get to the seventh edge there is only one option each time, ac, cd, db, and bf in that order. For the seventh edge, we must choose between fe and fg. Neither of these are bridges. We choose fe. Figure 12.146 shows that ac, cd, db, bf, and fe have been removed.
英語のヒント

Figure 12.146図12.146
Graph J with Seven Edges Removed
英語のヒント
7本の辺を除いたグラフJ
Repeat Step 2 for the eight, ninth, tenth, and eleventh edges. As shown in Figure 12.146, there is only one option for each of these edges, eh, hi, ig, and gf, in that order.
英語のヒント
8番目、9番目、10番目、11番目の辺について手順2を繰り返す。図12.146に示すように、これらの辺の選択肢はそれぞれ1つだけで、順にeh、hi、ig、gfである。
Step 3: Write out the Euler trail using the vertices in the sequence that the edges were removed. We removed cb, ba, ac, cd, db, bf, fe, eh, hi, ig, and gf, in that order. The Euler trail is c → b → a → c → d → b → f → e → h → i → g → f.
英語のヒント
手順3:辺を除いた順に頂点を使ってオイラー小道を書き出す。cb、ba、ac、cd、db、bf、fe、eh、hi、ig、gfをこの順に除いた。オイラー小道はc → b → a → c → d → b → f → e → h → i → g → fである。
In the previous section, we found Euler circuits using an algorithm that involved joining circuits together into one large circuit. You can also use Fleury’s algorithm to find Euler circuits in any graph with vertices of all even degree. In that case, you can start at any vertex that you would like to use.
英語のヒント
前の節では、回路をつないで1つの大きな回路にするアルゴリズムを使ってオイラー回路を見つけた。すべての頂点の次数が偶数のグラフでオイラー回路を見つけるのに、フルーリーのアルゴリズムも使える。その場合、使いたいどの頂点から始めてもよい。
Step 1: Begin at any vertex.
英語のヒント
手順1:どの頂点からでも始める。
Step 2: Remove an edge between the vertex and any adjacent vertex that is NOT a bridge, unless there is no other choice, making a note of the edge you removed. Repeat this step until all edges are removed.
英語のヒント
手順2:ほかに選択肢がないのでなければ、その頂点と隣接する頂点のあいだの橋でない辺を除き、除いた辺を記録する。すべての辺を除くまでこの手順を繰り返す。
Step 3: Write out the Euler circuit using the sequence of vertices and edges that you found. For example, if you removed ab, bc, cd, de, and ea, in that order, then the Euler circuit is a → b → c → d → e → a.
英語のヒント
手順3:見つけた頂点と辺の列を使ってオイラー回路を書き出す。たとえば、ab、bc、cd、de、eaをこの順に除いたなら、オイラー回路はa → b → c → d → e → aである。
Example 12.32例題 12.32
Finding an Euler Circuit or Euler Trail Using Fleury’s Algorithmフルーリーのアルゴリズムを使ってオイラー回路かオイラー小道を見つける
Use Fleury’s algorithm to find either an Euler circuit or Euler trail in Graph G in Figure 12.147.
英語のヒント
フルーリーのアルゴリズムを使って、図12.147のグラフGのオイラー回路かオイラー小道を見つけよ。

Figure 12.147図12.147
Graph G
英語のヒント
グラフG
Solution解答
Graph G has all vertices of even degree so it has an Euler circuit.
英語のヒント
グラフGのすべての頂点の次数は偶数なので、オイラー回路がある。
Step 1: Choose any vertex. We will choose vertex j.
英語のヒント
手順1:どれかの頂点を選ぶ。頂点jを選ぶ。
Step 2: Remove one of the four edges that meet at vertex j. Since jn is a bridge, we must remove either jh, ji, or jk. We remove ji as shown in Figure 12.148.
英語のヒント
手順2:頂点jで出会う4つの辺の1つを除く。jnは橋なので、jh、ji、jkのどれかを除かなければならない。図12.148に示すようにjiを除く。

Figure 12.148図12.148
Graph G with 1 Edge Removed
英語のヒント
1本の辺を除いたグラフG
Repeat Step 2: Since id is a bridge, we can remove either ih or ik next. We remove ih, and then the only option is to remove hj as shown in Figure 12.149.
英語のヒント
手順2を繰り返す:idは橋なので、次にihかikを除ける。ihを除くと、図12.149に示すように、選択肢はhjを除くことだけである。

Figure 12.149図12.149
Graph G with 3 Edges Removed
英語のヒント
3本の辺を除いたグラフG
Repeat Step 2: Since jn is a bridge, the next edge removed must be jk, and then the only option is to remove ki followed by id as shown in Figure 12.149. Even though id is a bridge, it can be removed because it is the only option at this point. Figure 12.150 shows Graph G with these additional edges removed.
英語のヒント

Figure 12.150図12.150
Graph G with 6 Edges Removed
英語のヒント
6本の辺を除いたグラフG
Repeat Step 2: Choose any one of the edges db, dc, or de. We remove dc as shown in Figure 12.151.
英語のヒント
手順2を繰り返す:辺db、dc、deのどれかを選ぶ。図12.151に示すようにdcを除く。

Figure 12.151図12.151
Graph G with 7 Edges Removed
英語のヒント
7本の辺を除いたグラフG
Repeat Step 2: Since co is a bridge, choose cb next. We remove cb, then bd, and then de as shown in Figure 12.152.
英語のヒント
手順2を繰り返す:coは橋なので、次にcbを選ぶ。図12.152に示すように、cbを除き、次にbd、次にdeを除く。

Figure 12.152図12.152
Graph G with 10 Edges Removed
英語のヒント
10本の辺を除いたグラフG
Repeat Step 2: Next, remove ec and co. Then choose any of op, pn, or om. We remove on as shown in Figure 12.153.
英語のヒント
手順2を繰り返す:次に、ecとcoを除く。それからop、pn、omのどれかを選ぶ。図12.153に示すようにonを除く。

Figure 12.153図12.153
Graph G with 13 Edges Removed
英語のヒント
13本の辺を除いたグラフG
Repeat Step 2: Next, remove either nm, np, or nj, but nj is a So, we remove nm as shown in Figure 12.154.
英語のヒント
手順2を繰り返す:次に、nm、np、njのどれかを除くが、njは橋である。だから、図12.154に示すようにnmを除く。

Figure 12.154図12.154
Graph G with 14 Edges Removed
英語のヒント
14本の辺を除いたグラフG
Repeat Step 2: Next, remove mo, op, pn, and nj. And we are done!
英語のヒント
手順2を繰り返す:次に、mo、op、pn、njを除く。これで終わりである!
Step 3: Notice that the algorithm brought us back to the vertex where we started, forming an Euler circuit. Write out the Euler circuit:
英語のヒント
手順3:アルゴリズムによって始めた頂点に戻り、オイラー回路ができたことに注意しよう。オイラー回路を書き出す: