プリンキピア

第12章グラフ理論

Circuits回路

In many applications of graph theory, such as creating efficient delivery routes, beginning and ending at the same location is a requirement. When a walk, path, or trail end at the same location or vertex they began, we call it closed. Otherwise, we call it open (does not begin and end at the same location or vertex). Some examples of closed walks, closed trails, and closed paths are given in in the following table.
英語のヒント
効率のよい配達経路を作るなど、グラフ理論の多くの応用では、同じ場所で始まり終わることが条件である。歩道、パス、小道が始まったのと同じ場所や頂点で終わるとき、閉じているという。そうでなければ、開いている(同じ場所や頂点で始まり終わらない)という。閉じた歩道、閉じた小道、閉じたパスの例を次の表に示す。
Table 12.4表12.4
Closed Walks, Trails, and Paths
英語のヒント
閉じた歩道、小道、パス
DESCRIPTION説明EXAMPLE例CHARACTERISTICS特徴
A closed walk is a walk that begins and ends at the same vertex.閉じた歩道とは、同じ頂点で始まり終わる歩道である。
A graph has five vertices: b, c, d, e, and f. All the vertices are interconnected. An arrow labeled 1 flows from d to f. An arrow labeled 2 flows from f to b. An arrow labeled 3 flows from b to c. An arrow labeled 4 flows from c to f. An arrow labeled 5 flows from f to d.
d → f → b → c → f → d
Alternating sequence of vertices and edges
英語のヒント
頂点と辺が交互に並ぶ列
Begins and ends at the same vertex
英語のヒント
同じ頂点で始まり終わる
A closed trail is a trail that begins and ends at the same vertex. It is commonly called a circuit.閉じた小道とは、同じ頂点で始まり終わる小道である。ふつう回路と呼ばれる。
A graph has five vertices b, c, d, e, and f. All the vertices are interconnected. An arrow labeled 1 flows from d to f. An arrow labeled 2 flows from f to b. An arrow labeled 3 flows from b to c. An arrow labeled 4 flows from c to f. An arrow labeled 5 flows from f to e. An arrow labeled 6 flows from e to d.
d → f → b → c → f → e → d
No repeated edges
英語のヒント
繰り返す辺がない
Begins and ends at the same vertex
英語のヒント
同じ頂点で始まり終わる
A closed path is a path that begins and ends at the same vertex. It is also referred to as a directed cycle because it travels through a cyclic subgraph.閉じたパスとは、同じ頂点で始まり終わるパスである。閉路部分グラフを通るので、有向閉路とも呼ばれる。
A graph has five vertices b, c, d, e, and f. All the vertices are interconnected. An arrow labeled 1 flows from d to f. An arrow labeled 2 flows from f to b. An arrow labeled 3 flows from b to c. An arrow labeled 4 flows from c to d.
d → f → b → c → d
No repeated edges or vertices
英語のヒント
繰り返す辺も頂点もない
Begins and ends at the same vertex
英語のヒント
同じ頂点で始まり終わる
Since walks, trails, and paths are all related, closed walks, circuits, and directed cycles are related too.
英語のヒント
歩道、小道、パスがすべて関係しているので、閉じた歩道、回路、有向閉路も関係している。
  1. All circuits are closed walks, but closed walks that visit the same edge twice are not circuits.
    英語のヒント
    すべての回路は閉じた歩道だが、同じ辺を2回訪れる閉じた歩道は回路ではない。
  2. All directed cycles are circuits, but circuits in which a vertex is visited twice are not directed cycles.
    英語のヒント
    すべての有向閉路は回路だが、頂点を2回訪れる回路は有向閉路ではない。
We can visualize the relationship as in Figure 12.84.
英語のヒント
この関係は図12.84のように見られる。
Three concentric ovals represent directed cycles, circuits, and closed walks. The first (inner) oval labeled directed cycles (closed paths) reads, no repeated edges or vertices. The second oval labeled circuits (closed talks) reads, no repeated edges. The third oval is labeled closed walks.
Figure 12.84図12.84
Closed Walks, Circuits, and Directed Cycles
英語のヒント
閉じた歩道、回路、有向閉路
The same circuit can be named using any of its vertices as a starting point. For example, the circuit d → f → b → c → d can also be referred to in the following ways.
英語のヒント
同じ回路は、どの頂点を始点にしても名づけられる。たとえば、回路d → f → b → c → dは次のようにも呼べる。
a → b → c → d → a is the same as
英語のヒント
a → b → c → d → a は次と同じである
{b→c→d→a→bc→d→a→b→cd→a→b→c→d
Let’s practice working with closed walks, circuits (closed trails), and directed cycles (closed paths). In the graph in Figure 12.85, the vertices are major central and south Florida airports. The edges are direct flights between them.
英語のヒント
閉じた歩道、回路(閉じた小道)、有向閉路(閉じたパス)を扱う練習をしよう。図12.85のグラフでは、頂点はフロリダ中部と南部の主な空港である。辺はそれらのあいだの直行便である。
A graph represents the direct flights between Central and South Florida airports. The graph has six vertices: T P A, M C O, P B I, F L L, M I A, and E Y W. Edges from T P A lead to E Y W, M I A, F L L, and P B I. Edges from M C O lead to E Y W, M I A, and F L L. An edge from E Y W leads to F L L.
Figure 12.85図12.85
Major Central and South Florida Airports
英語のヒント
フロリダ中部と南部の主な空港
Example 12.21例題 12.21

Determining a Closed Walk, Circuit, or Directed Cycle閉じた歩道、回路、有向閉路を判断する

Suppose that you need to travel by air from Miami (MIA) to Orlando (MCO) and you were restricted to flights represented on the graph. For the trip to Orlando, you decide to purchase tickets with a layover in Key West (EYW) as shown in Figure 12.86, but you still have to decide on the return trip. Determine if your roundtrip itinerary is a closed walk, a circuit, and/or a directed cycle, based on the return trip described in each part.
英語のヒント
マイアミ(MIA)からオーランド(MCO)へ飛行機で旅行する必要があり、グラフに示す便に限られているとする。オーランドへの旅では、図12.86に示すようにキーウェスト(EYW)で乗り継ぐ航空券を買うことにしたが、帰りの旅はまだ決めなければならない。各問に述べた帰りの旅にもとづいて、往復の旅程が閉じた歩道か、回路か、有向閉路かを判断せよ。
A graph represents the direct flights between Central and South Florida airports. The graph has six vertices: T P A, M C O, P B I, F L L, M I A, and E Y W. Edges from T P A lead to E Y W, M I A, F L L, and P B I. Edges from M C O lead to E Y W, M I A, and F L L. An edge from E Y W leads to F L L. An arrow from M I A points to E Y W. An arrow from E Y W points to M C O.
Figure 12.86図12.86
MIA to EYW to MCO
英語のヒント
MIAからEYW、MCOへ
  1. You returned to Miami (MIA) by reversing your route.
    英語のヒント
    経路を逆にたどってマイアミ(MIA)に戻った。
  2. Your direct flight back left Orlando (MCO) but was diverted to Fort Lauderdale (FLL)! From there you flew to Tampa (TPA) before returning to Miami (MIA).
    英語のヒント
    帰りの直行便はオーランド(MCO)を出たが、フォートローダーデール(FLL)に行き先を変更された!そこからタンパ(TPA)へ飛び、それからマイアミ(MIA)に戻った。
Solution解答
  1. The whole trip was MIA → EYW → MCO → EYW → MIA. This is a closed walk, because it is a walk that begins and ends at the same vertex. It is not a circuit, because it repeats edges. If it is not a circuit, then it cannot be a directed cycle.
    英語のヒント
    全行程はMIA → EYW → MCO → EYW → MIAだった。同じ頂点で始まり終わる歩道なので、これは閉じた歩道である。辺を繰り返すので、回路ではない。回路でないなら、有向閉路でもありえない。
  2. The whole trip was MIA → EYW → MCO → FLL → TPA → MIA. This is a closed walk, because it is a walk that begins and ends at the same vertex. It is a circuit because no edges were repeated. It is also a directed cycle because no vertices were repeated either. So, it is all three!
    英語のヒント
    全行程はMIA → EYW → MCO → FLL → TPA → MIAだった。同じ頂点で始まり終わる歩道なので、これは閉じた歩道である。辺を繰り返さなかったので回路である。頂点も繰り返さなかったので有向閉路でもある。だから、3つすべてである!