第12章グラフ理論
Existence of a Hamilton Pathハミルトンパスの存在
It turns out that there is no Hamilton path between vertices A and E in Graph G in Figure 12.177. To understand why, let’s imagine there is a red apple tree on one side of a bridge and a green apple tree on the other side of the bridge. Now suppose someone asked you to pick up all the fallen apples under each tree without crossing the bridge more than once, and making sure that the first apple you pick up and the last apple you pick up are both red. You would say, that is impossible! To have the first and last apple be red would either require leaving the green apples on the ground or crossing the bridge twice.
英語のヒント
図12.177のグラフGの頂点AとEのあいだにハミルトンパスがないことがわかる。その理由を理解するために、橋の片側に赤いリンゴの木があり、橋の反対側に緑のリンゴの木があると想像しよう。誰かがあなたに、橋を2回以上渡らずに各木の下に落ちたリンゴをすべて拾い、最初に拾うリンゴと最後に拾うリンゴをどちらも赤にするよう頼んだとする。あなたは、それは不可能だと言うだろう!最初と最後のリンゴを赤にするには、緑のリンゴを地面に残すか、橋を2回渡る必要がある。
Let’s see how this relates to finding a Hamilton path between A and E in Graph G. The edge AC is a bridge because, if it were removed, the graph would become disconnected with two components, the component {C} and the component {A, B, D, E, F}. So, we can think of the vertices A, B, D, E, and F as the red apples, vertex C as the green apple, and the edge AC is the bridge between them as in Figure 12.178.
英語のヒント
これがグラフGのAとEのあいだのハミルトンパスを見つけることとどう関係するかを見よう。辺ACは、除くとグラフが成分{C}と成分{A, B, D, E, F}の2つをもつ非連結になるので、橋である。だから、図12.178のように、頂点A、B、D、E、Fを赤いリンゴ、頂点Cを緑のリンゴ、辺ACをそのあいだの橋と考えられる。

Figure 12.178図12.178
Bridge between Red and Green Apples
英語のヒント
赤いリンゴと緑のリンゴのあいだの橋
The creation of a Hamilton path requires a visit to each vertex, just as picking up all the apples requires a visit to each apple. A and E are both red apples; so, a path from A to E would both start and end at a red apple, just as you were asked to do. And you wouldn’t be able to cross the bridge twice because that would mean visiting A twice, which is not allowed in a Hamilton path. So, it is impossible to find a Hamilton path from A to E just as it was impossible to pick up all the apples without crossing the bridge more than once. By the same reasoning, if a graph has a bridge, there will never be a Hamilton path that begins and ends on the same side of that bridge, meaning beginning and ending at vertices that would be in the same component if the bridge were removed from the graph.
英語のヒント
リンゴをすべて拾うには各リンゴを訪れる必要があるのと同じように、ハミルトンパスを作るには各頂点を訪れる必要がある。AとEはどちらも赤いリンゴなので、AからEへのパスは、あなたが頼まれたのと同じように赤いリンゴで始まり終わる。そして、橋を2回渡ることはできない。それはAを2回訪れることを意味し、ハミルトンパスでは許されないからである。だから、橋を2回以上渡らずにリンゴをすべて拾うのが不可能だったのと同じように、AからEへのハミルトンパスを見つけることは不可能である。同じ理由で、グラフに橋があるなら、その橋の同じ側で始まり終わる、つまりグラフから橋を除くと同じ成分に入る頂点で始まり終わるハミルトンパスは決してない。
Example 12.40例題 12.40
Finding a Hamilton Path If One Existsハミルトンパスがあれば見つける
Find a Hamilton path from vertex s to vertex v for each graph in Figure 12.179 or indicate that there is none.
英語のヒント
図12.179の各グラフについて、頂点sから頂点vへのハミルトンパスを見つけるか、ないことを示せ。

Figure 12.179図12.179
Graphs A, B, C, and D
英語のヒント
グラフA、B、C、D
Solution解答
Graph A: Edge uw is a bridge connecting component {s, t, u, v} to the component {w, x, y, z}. There is no Hamilton path from vertex s to vertex v because they would be part of the same component if the bridge uw were removed.
英語のヒント
グラフA:辺uwは、成分{s, t, u, v}と成分{w, x, y, z}をつなぐ橋である。橋uwを除くと頂点sと頂点vは同じ成分に入るので、sからvへのハミルトンパスはない。
Graph B: There are no bridges in Graph B. The only method we have to determine if a Hamilton path from vertex s to vertex v exists is to try every possibility. From vertex s, we can visit either vertex y or vertex t. We will try vertex y first and then come back to see what happens with vertex t. After visiting y, we must visit z and then u, but then we have to decide between vertices r, t, and v next as shown in Figure 12.180.
英語のヒント
グラフB:グラフBに橋はない。頂点sから頂点vへのハミルトンパスがあるかどうかを判断するのに使える唯一の方法は、すべての可能性を試すことである。頂点sから、頂点yか頂点tを訪れられる。先に頂点yを試し、それから戻って頂点tで何が起こるかを見る。yを訪れたあと、z、次にuを訪れなければならないが、そのあと図12.180に示すように頂点r、t、vのどれにするかを決めなければならない。

Figure 12.180図12.180
Choose Vertex r, t, or v
英語のヒント
頂点r、t、vを選ぶ
Vertex v is not an option since we want to end at v. Vertex t is not an option since that would force us to go to visit s a second time. So, we must go to vertex r next. After vertex r, we must visit x, then w, then v, but we missed vertex t as shown in Figure 12.181.
英語のヒント
vで終わりたいので、頂点vは選択肢にならない。頂点tは、sを2回目に訪れることになるので選択肢にならない。だから、次に頂点rへ行かなければならない。頂点rのあと、x、w、vを訪れなければならないが、図12.181に示すように頂点tが抜けた。

Figure 12.181図12.181
Missed Vertex t
英語のヒント
抜けた頂点t
Let’s go back to the beginning and choose t instead of y. After t, we must go to u and then we have a choice to make between r, v, and z as shown in Figure 12.182.
英語のヒント
始めに戻り、yの代わりにtを選ぼう。tのあと、uへ行かなければならず、それから図12.182に示すようにr、v、zから選ばなければならない。

Figure 12.182図12.182
Choose Vertex v, r, or z
英語のヒント
頂点v、r、zを選ぶ
Vertex v is not an option since we want to end at v. Vertex z is not an option since that would force us to go y and then to visit s a second time. So, we must go to vertex r next. After r, we must go to x then w then v, where we have to stop even though we have missed vertices y and z, as shown in Figure 12.183.
英語のヒント
vで終わりたいので、頂点vは選択肢にならない。頂点zは、yへ行ってからsを2回目に訪れることになるので選択肢にならない。だから、次に頂点rへ行かなければならない。rのあと、x、w、vへ行かなければならず、図12.183に示すように頂点yとzが抜けているのにそこで止まらなければならない。

Figure 12.183図12.183
Missed Vertices y and z
英語のヒント
抜けた頂点yとz
So, we have tried every possible route and there are no Hamilton paths between s and v in Graph B.
英語のヒント
だから、ありうる経路をすべて試したが、グラフBのsとvのあいだにハミルトンパスはない。
Graph C: In Graph C, there is a Hamilton path, s → t → u → x → w → v.
英語のヒント
グラフC:グラフCにはハミルトンパスs → t → u → x → w → vがある。
Graph D: In Graph D, there is a bridge, tx, which would form components {r, s, t, u, q} and {v, w, x, y, z} if it were removed. Since s and v would be in different components, it is possible there is a Hamilton path between them. The only way to know is to try all possibilities. If we begin at s, we can go to r then t, or we can go directly to t, either way, we have a problem as you can see in Figure 12.184.
英語のヒント
グラフD:グラフDには橋txがあり、除くと成分{r, s, t, u, q}と{v, w, x, y, z}ができる。sとvは異なる成分に入るので、そのあいだにハミルトンパスがある可能性はある。知る唯一の方法は、すべての可能性を試すことである。sから始めるなら、rへ行ってからtへ行くか、直接tへ行けるが、図12.184でわかるように、どちらにしても問題がある。

Figure 12.184図12.184
Vertices Visited Twice or Skipped
英語のヒント
2回訪れるか飛ばす頂点
If we visit all the vertices in the component {r, s, t, u, q}, we will have to visit t a second time in order to cross the bridge. If we visit t only once, we have to skip some of the vertices. So, there is no Hamilton path between s and v.
英語のヒント
成分{r, s, t, u, q}の頂点をすべて訪れると、橋を渡るためにtを2回目に訪れなければならない。tを1回だけ訪れると、いくつかの頂点を飛ばさなければならない。だから、sとvのあいだにハミルトンパスはない。
There is not a short way to determine if there is a Hamilton path between two vertices on a graph that works in every situation. However, there are a few common situations that can help us to quickly determine that there is no Hamilton path. Some of these are listed in Table 12.10.
英語のヒント
グラフの2つの頂点のあいだにハミルトンパスがあるかどうかを判断する、どんな状況でも使える短い方法はない。しかし、ハミルトンパスがないことをすばやく判断するのに役立つよくある状況がいくつかある。そのいくつかを表12.10に挙げる。
| Scenario状況 | Diagram図 |
|---|---|
| Scenario 1 If an edge ab is a bridge, then there is no Hamilton path between a pair of vertices that are on the same side of edge ab. We saw this in Graph A of Example 12.40.状況1 辺abが橋なら、辺abの同じ側にある頂点の組のあいだにハミルトンパスはない。これは例題12.40のグラフAで見た。 | ![]() {a, c, d, f}. No Hamilton path between any two vertices in {b, e, h, g, i}.成分{a, c, d, f}のどの2つの頂点のあいだにもハミルトンパスはない。{b, e, h, g, i}のどの2つの頂点のあいだにもハミルトンパスはない。 |
| Scenario 2 If an edge ab is a bridge with at least three components on each side, then there is no Hamilton path beginning or ending at a or b. We saw this in Graph D of Example 12.40.状況2 辺abが、両側に少なくとも3つの成分がある橋なら、aまたはbで始まるか終わるハミルトンパスはない。これは例題12.40のグラフDで見た。 | ![]() No Hamilton path beginning or ending at a or b. 英語のヒントaまたはbで始まるか終わるハミルトンパスはない。 |
| Scenario 3 If a graph is composed of two cycles joined only at a single vertex p, and v is any vertex that is NOT adjacent to p, then there are no Hamilton paths beginning or ending at either p or v. We saw this in Graph B of Example 12.40.状況3 グラフが1つの頂点pだけでつながる2つの閉路からなり、vがpに隣接しないどれかの頂点なら、pまたはvで始まるか終わるハミルトンパスはない。これは例題12.40のグラフBで見た。 | ![]() |


