第12章グラフ理論
12.5 Euler Circuits12.5 オイラー回路

Figure 12.104図12.104
Delivery trucks move goods from place to place. (credit: “Mack Midliner” by Jason Lawrence/Flickr, CC BY 2.0)
英語のヒント
配達トラックが品物をあちこちへ運ぶ。(出典:Jason Lawrence の “Mack Midliner”/Flickr、CC BY 2.0)
Learning Objectives学習目標
After completing this section, you should be able to:
英語のヒント
この節を終えると、次のことができるようになる。
- Determine if a graph is connected.
英語のヒント
グラフが連結かどうかを判断する。 - State the Chinese postman problem.
英語のヒント
中国人郵便配達問題を述べる。 - Describe and identify Euler Circuits.
英語のヒント
オイラー回路を述べて見きわめる。 - Apply the Euler Circuits Theorem.
英語のヒント
オイラー回路定理を当てはめる。 - Eulerize graphs in real-world applications.
英語のヒント
現実世界の応用でグラフをオイラー化する。
The delivery of goods is a huge part of our daily lives. From the factory to the distribution center, to the local vendor, or to your front door, nearly every product that you buy has been shipped multiple times to get to you. If the cost and time of that delivery is too great, you will not be able to afford the product. Delivery personnel have to leave from one location, deliver the goods to various places, and then return to their original location and do all of this in an organized way without losing money. How do delivery services find the most efficient delivery route? The answer lies in graph theory.
英語のヒント
品物の配達は私たちの日常生活の大きな部分である。工場から配送センターへ、地元の販売店へ、あるいは玄関へと、あなたが買うほとんどすべての製品は、届くまでに何度も運ばれている。その配達の費用と時間が大きすぎると、製品を買う余裕がなくなる。配達員は、ある場所を出発し、品物をさまざまな場所へ配り、もとの場所に戻らなければならず、これらをすべて損をせずに整然と行わなければならない。配達業者はどのように最も効率のよい配達経路を見つけるのか。答えはグラフ理論にある。
Connectedness連結性
Before we can talk about finding the best delivery route, we have to make sure there is a route at all. For example, suppose that you were tasked with visiting every airport on the graph in Figure 12.105 by plane. Could you accomplish that task, only taking direct flight paths between airports listed on this graph? In other words, are all the airports connected by paths? Or are some of the airports disconnected from the others?
英語のヒント
最良の配達経路を見つける話をする前に、そもそも経路があることを確かめなければならない。たとえば、図12.105のグラフのすべての空港を飛行機で訪れる任務を与えられたとする。このグラフに載っている空港のあいだの直行便の経路だけをとって、その任務を果たせるだろうか。言いかえると、すべての空港はパスでつながっているか。それとも、ほかから切り離された空港があるか。

Figure 12.105図12.105
Major Central and South Florida Airports
英語のヒント
フロリダ中部と南部の主な空港
In Figure 12.105, we can see TPA is adjacent to PBI, FLL, MIA, and EYW. Also, there is a path between TPA and MCO through FLL. This indicates there is a path between each pair of vertices. So, it is possible to travel to each of these airports only taking direct flight paths and visiting no other airports. In other words, the graph is connected because there is a path joining every pair of vertices on the graph. Notice that if one vertex is connected to each of the others in a graph, then all the vertices are connected to each other. So, one way to determine if a graph is connected is to focus on a single vertex and determine if there is a path between that vertex and each of the others. If so, the graph is connected. If not, the graph is disconnected, which means at least one pair of vertices in a graph is not joined by a path. Let’s take a closer look at graph X in Figure 12.106. Focus on vertex a. There is a path between vertices a and b, but there is no path between vertex a and vertex c. So, Graph X is disconnected.
英語のヒント
図12.105で、TPAはPBI、FLL、MIA、EYWに隣接していることがわかる。また、TPAとMCOのあいだにはFLLを通るパスがある。これは、頂点の各組のあいだにパスがあることを示している。だから、直行便の経路だけをとり、ほかの空港を訪れずにこれらの各空港へ旅行できる。言いかえると、グラフの頂点のどの組にもそれを結ぶパスがあるので、グラフは連結である。グラフの1つの頂点がほかの各頂点につながっているなら、すべての頂点が互いにつながっていることに注意しよう。だから、グラフが連結かどうかを判断する方法の1つは、1つの頂点に注目し、その頂点とほかの各頂点のあいだにパスがあるかどうかを判断することである。あるなら、グラフは連結である。ないなら、グラフは非連結である。つまり、グラフの少なくとも1組の頂点がパスで結ばれていない。図12.106のグラフXをくわしく見よう。頂点aに注目する。頂点aとbのあいだにはパスがあるが、頂点aと頂点cのあいだにパスはない。だから、グラフXは非連結である。

Figure 12.106図12.106
Connected vs. Disconnected
英語のヒント
連結と非連結
When you are working with a planar graph, you can also determine if a graph is connected by untangling it. If you draw it so that so that none of the edges are overlapping, like we did with Graph X in Figure 12.106, it is easier to see that the graph is disconnected.
英語のヒント
平面グラフを扱うときは、ほどいてグラフが連結かどうかを判断することもできる。図12.106のグラフXでしたように、辺が重ならないように描くと、グラフが非連結であることがわかりやすい。

Figure 12.107図12.107
Untangling Graph X
英語のヒント
グラフXをほどく
Versions 2 and 3 of Graph X in Figure 12.107 each have the same number of vertices, number of edges, degrees of the vertices, and pairs of adjacent vertices as version 1. In other words, each version retains the same structure as the original graph. Since versions 2 and 3 of Graph X, do not have overlapping edges, it is easier to identify pairs of vertices that do not have paths between them, and it is more obvious that Graph X is disconnected. In fact, there are two completely separate, disconnected subgraphs, one with the vertices in {a, b, e}, and the other with the vertices {c, d, f}
英語のヒント
図12.107のグラフXの版2と3は、それぞれ版1と同じ頂点の数、辺の数、頂点の次数、隣接する頂点の組をもつ。言いかえると、各版はもとのグラフと同じ構造を保っている。グラフXの版2と3には重なる辺がないので、あいだにパスがない頂点の組を見きわめやすく、グラフXが非連結であることがより明らかである。実際、完全に別々の2つの非連結な部分グラフがある。1つは頂点が{a, b, e}で、もう1つは頂点が{c, d, f}である。
These sets of vertices together with all of their edges are called components of Graph X. A component of a graph is a subgraph in which there is a path between each pair of vertices in the subgraph, but no edges between any of the vertices in the subgraph and a vertex that is not in the subgraph.
英語のヒント
これらの頂点の集合とそのすべての辺を、グラフXの成分という。グラフの成分とは、部分グラフのなかの頂点の各組のあいだにパスがあり、部分グラフのなかの頂点と部分グラフにない頂点のあいだに辺がない部分グラフである。
Now let’s focus on Graph Y from Figure 12.106. As in Graph X, there is a path between vertices a and b, as well as between vertices a and e, but Graph Y is different from Graph X because of vertex g. Not only is there a path between vertices a and g, but vertex g bridges the gap between a and c with the path a → b → g → c. Similarly, there is a path between vertices a and d and vertices a and f: a → b → g → d, a → b → g → d → f. Since there is a path between vertex a and every other vertex, Graph Y is connected. You can also see this a bit more clearly by untangling Graph Y as in Figure 12.108. Even when Y is drawn so that the edges do not overlap, the graph cannot be drawn as two separate, unconnected pieces. In other words, Graph Y has only one component with the vertices {a, b, c, d, e, f}.
英語のヒント
次に、図12.106のグラフYに注目しよう。グラフXと同じように、頂点aとbのあいだ、頂点aとeのあいだにパスがあるが、グラフYは頂点gのためにグラフXと異なる。頂点aとgのあいだにパスがあるだけでなく、頂点gはパスa → b → g → cでaとcの隙間に橋をかける。同様に、頂点aとdのあいだ、頂点aとfのあいだにパスがある:a → b → g → d、a → b → g → d → f。頂点aとほかのすべての頂点のあいだにパスがあるので、グラフYは連結である。図12.108のようにグラフYをほどくと、これはもう少しはっきりわかる。辺が重ならないようにYを描いても、グラフを2つの別々のつながっていない部分として描くことはできない。言いかえると、グラフYには頂点{a, b, c, d, e, f}の成分が1つだけある。
We can give an alternate definition of connected and disconnected using the idea of components. A graph is connected if it has only one component. A graph is disconnected if it has more than one component. These alternate definitions are equivalent to the previous definitions. This means that you can confirm a graph is connected or disconnected either by checking to see if there is a path between each vertex and each other vertex, or by identifying the number of components. A graph is connected if it has only one component.
英語のヒント
成分の考えを使って、連結と非連結の別の定義を与えられる。グラフは成分が1つだけなら連結である。グラフは成分が2つ以上なら非連結である。これらの別の定義は前の定義と同値である。つまり、グラフが連結か非連結かは、各頂点とほかの各頂点のあいだにパスがあるかを確認するか、成分の数を見きわめて確かめられる。グラフは成分が1つだけなら連結である。

Figure 12.108図12.108
Untangling Graph Y
英語のヒント
グラフYをほどく
Example 12.24例題 12.24
Determining If a Graph Is Connected or Disconnectedグラフが連結か非連結かを判断する

Figure 12.109図12.109
Graph E
英語のヒント
グラフE
- Find a path between vertex a and every other vertex on the graph, if possible.
英語のヒント
可能なら、頂点aとグラフのほかのすべての頂点のあいだのパスを見つけよ。 - Identify all the components of Graph E.
英語のヒント
グラフEのすべての成分を見きわめよ。 - Determine whether the graph is connected or disconnected and explain how you know.
英語のヒント
グラフが連結か非連結かを判断し、どうしてわかるかを説明せよ。
Solution解答
- The paths are a → d → b, a → d → c, and a → d.
英語のヒント
パスはa → d → b、a → d → c、a → dである。 - There is only one component in Graph E. It has the vertices {a, b, c, d}.
英語のヒント
グラフEには成分が1つだけある。頂点は{a, b, c, d}である。 - The graph is connected, because there is a path between vertex a and every other vertex. We can also show that Graph E is connected because it has only one component.
英語のヒント
頂点aとほかのすべての頂点のあいだにパスがあるので、グラフは連結である。グラフEは成分が1つだけなので連結であることも示せる。
Example 12.25例題 12.25
Applying Connectedness連結性を当てはめる
The U.S. Interstate Highway System extends throughout the 48 contiguous states. It also has routes in the states of Hawaii and Alaska, and the commonwealth of Puerto Rico. Consider a graph representing the U.S. Interstate Highway System, in which there is a vertex for each of the 50 states and Puerto Rico, and an edge is drawn between any two vertices representing states that are connected by a highway in that system. Would this graph be connected or disconnected? Explain your reasoning.
英語のヒント
アメリカの州間高速道路網は、隣接する48州全体に広がっている。ハワイ州とアラスカ州、プエルトリコ自治連邦区にも路線がある。アメリカの州間高速道路網を表すグラフを考えよう。50州とプエルトリコのそれぞれに頂点があり、その道路網の高速道路でつながる州を表す2つの頂点のあいだに辺を描く。このグラフは連結か非連結か。理由を説明せよ。
Solution解答
Hawaii, Alaska, and Puerto Rico are geographically separate from the 48 contiguous states, and each from each other. This means that there are vertices on the graph with no path joining them to the other vertices. So the graph is disconnected.
英語のヒント
ハワイ、アラスカ、プエルトリコは、隣接する48州から地理的に離れ、互いにも離れている。つまり、グラフにはほかの頂点と結ぶパスのない頂点がある。だから、グラフは非連結である。