第12章グラフ理論
The Five Rooms Puzzle5部屋パズル
Just as Euler determined that only graphs with vertices of even degree have Euler circuits, he also realized that the only vertices of odd degree in a graph with an Euler trail are the starting and ending vertices. For example, in Figure 12.132, Graph H has exactly two vertices of odd degree, vertex g and vertex e. Notice the Euler trail we saw in Excercise 3 of Example 12.29 began at vertex g and ended at vertex e.
英語のヒント
This is consistent with what we learned about vertices off odd degree when we were studying Euler circuits. We saw that a vertex of odd degree couldn't exist in an Euler circuit as depicted in Figure 12.133. If it was a starting vertex, at some point we would leave the vertex and not be able to return without repeating an edge. If it was not a starting vertex, at some point we would return and not be able to leave without repeating an edge. Since the starting and ending vertices in an Euler trail are not the same, the start is a vertex we want to leave without returning, and the end is a vertex we want to return to and never leave. Those two vertices must have odd degree, but the others cannot.
英語のヒント
これは、オイラー回路を調べていたときに奇数の次数の頂点について学んだことと一致する。図12.133に描くように、奇数の次数の頂点はオイラー回路に存在できないことを見た。出発の頂点なら、ある時点で頂点を離れ、辺を繰り返さずに戻れなくなる。出発の頂点でないなら、ある時点で戻り、辺を繰り返さずに離れられなくなる。オイラー小道の出発と終点の頂点は同じではないので、出発は戻らずに離れたい頂点で、終点は戻って二度と離れたくない頂点である。この2つの頂点の次数は奇数でなければならないが、ほかの頂点は奇数ではありえない。

Figure 12.133図12.133
A Vertex of Degree 3
英語のヒント
次数3の頂点
Let’s use the Euler trail theorem to solve a puzzle so you can amaze your friends! This puzzle is called the “Five Rooms Puzzle.” Suppose that you were in a house with five rooms and the exterior. There is a doorway in every shared wall between any two rooms and between any room and the exterior as shown in Figure 12.134. Could you find a route through the house that passes through each doorway exactly once?
英語のヒント
オイラー小道の定理を使ってパズルを解き、友達を驚かせよう!このパズルは「5部屋パズル」という。5つの部屋と外部のある家にいるとする。図12.134に示すように、2つの部屋のあいだと部屋と外部のあいだの共有するすべての壁に出入り口がある。各出入り口をちょうど1回通る、家のなかの経路を見つけられるだろうか。

Figure 12.134図12.134
Five Rooms Puzzle
英語のヒント
5部屋パズル
Let’s represent the puzzle with a graph in which vertices are rooms (or the exterior) and an edge indicates a door between two rooms as shown in Figure 12.135.
英語のヒント
図12.135に示すように、頂点が部屋(または外部)で、辺が2つの部屋のあいだのドアを示すグラフでパズルを表そう。

Figure 12.135図12.135
Graph of Five Rooms Puzzle
英語のヒント
5部屋パズルのグラフ
To pass through each doorway exactly once means that we cross every edge in the graph exactly once. Since we have not been asked to start and end at the same position, but to visit each edge exactly once, we are looking for an Euler trail. Let’s check the degrees of the vertices.
英語のヒント
各出入り口をちょうど1回通ることは、グラフのすべての辺をちょうど1回渡ることを意味する。同じ位置で始まり終わることは求められず、各辺をちょうど1回訪れることが求められているので、オイラー小道を探している。頂点の次数を確認しよう。

Figure 12.136図12.136
Degrees of Vertices in Five Rooms Puzzle
英語のヒント
5部屋パズルの頂点の次数
Since there are more than two vertices of odd degree as shown in Figure 12.136, the graph of the five rooms puzzle contains no Euler path. Now you can amaze and astonish your friends!
英語のヒント
図12.136に示すように奇数の次数の頂点が2つを超えるので、5部屋パズルのグラフにオイラー小道はない。これで友達を驚かせられる!