プリンキピア

第12章グラフ理論

Graph Coloringsグラフの彩色

In this section so far, we have looked at how to navigate graphs by proceeding from one vertex to another in a sequence that does not skip any vertices, but in some applications we may want to skip vertices. Remember the camp Olympics at Camp Woebegone in Comparing Graphs? You were planning a camp Olympics with four events. The campers signed up for the events. You drew a graph to help you visualize which events have campers in common. The vertices of Graph E in Figure 12.87 represent the events and adjacent vertices indicate that there are campers who are participating in both.
英語のヒント
この節ではここまで、頂点を飛ばさない列である頂点から別の頂点へ進んでグラフをたどる方法を見てきたが、応用によっては頂点を飛ばしたいことがある。グラフを比べるのキャンプ・ウォービゴーンのキャンプ・オリンピックを覚えているだろうか。4種目のキャンプ・オリンピックを計画していた。キャンプ参加者は種目に申し込んだ。どの種目に共通の参加者がいるかを見やすくするためにグラフを描いた。図12.87のグラフEの頂点は種目を表し、隣接する頂点は両方に参加する参加者がいることを示す。
A graph with four vertices: a, b, c, and d. The edges connect a b, b d, d c, and c a.
Figure 12.87図12.87
Graphs of Camp Olympics
英語のヒント
キャンプ・オリンピックのグラフ
In this case, we do NOT want events represented by two adjacent vertices to occur in the same timeslot, because that would prevent the campers who wanted to participate in both from doing so. We can use the graph in Figure 12.87 to count the timeslots we need so there are no conflicts. Let’s assign each timeslot a different color. We could categorize events that happen at 1 pm as Red; 2 pm, Purple; 3 pm, Blue; and 4 pm, Green. Then assign different colors to any pair of adjacent vertices to ensure that the events they represent do not end up in the same timeslot. Figure 12.88 shows several of the ways to do this while obeying the rule that no pair of adjacent vertices can be the same color.
英語のヒント
この場合、隣接する2つの頂点が表す種目を同じ時間枠に行いたくない。両方に参加したい参加者が参加できなくなるからである。図12.87のグラフを使って、かち合いがないように必要な時間枠を数えられる。各時間枠に異なる色を割り当てよう。午後1時の種目を赤、2時を紫、3時を青、4時を緑に分類できる。次に、隣接する頂点の組に異なる色を割り当てて、それらが表す種目が同じ時間枠にならないようにする。図12.88は、隣接する頂点の組が同じ色にならないという規則を守って、これを行ういくつかの方法を示している。
Three graphs are labeled graph 1, graph 2, and graph 3. Graph 1 has four vertices: a, b, c, and d in blue, green, purple, and red, respectively. Graph 2 has four vertices: a, b, c, and d in blue, purple, purple, and red, respectively. Graph 3 has four vertices: a, b, c, and d in red, purple, purple, and red, respectively. In each graph, the edges connect a b, b d, d c, and c a.
Figure 12.88図12.88
Graph Colorings
英語のヒント
グラフの彩色
In Figure 12.88, the graphs with vertices colored so that no adjacent vertices are the same color are called graph colorings. Notice that Graph 3 has the fewest colors, which means it shows us how to have the fewest number of timeslots. The events marked in red, a and d, can be held at the same time because they are not adjacent and do not have conflicts. Also, the events marked in purple, b and c, can be held at the same time. We would not need green or blue timeslots at all!
英語のヒント
図12.88で、隣接する頂点が同じ色にならないように頂点を塗ったグラフをグラフの彩色という。グラフ3の色がいちばん少ないことに注意しよう。つまり、時間枠をいちばん少なくする方法を示している。赤で印をつけた種目aとdは、隣接せずかち合いがないので同時に開ける。また、紫で印をつけた種目bとcも同時に開ける。緑や青の時間枠はまったく必要ない!
A graph that uses n colors is called an 𝒏-coloring. The smallest number of colors needed to color a particular graph is called its chromatic number.
英語のヒント
n色を使うグラフを𝒏彩色という。あるグラフを塗るのに必要な色の最小の数を彩色数という。
Graph colorings can be used in many applications like the scheduling scenario at camp Woebegone. Let's look at how they work in more detail. Figure 12.89 shows two different colorings of a particular graph. Coloring A is called a four-coloring, because it uses four colors, red (R), green (G), blue (B), and purple (P). Coloring B is called a three-coloring because it uses three. The colors allow us to visually subdivide the graphs into groups. The only rule is that adjacent vertices are different colors so that they are in different groups.
英語のヒント
グラフの彩色は、キャンプ・ウォービゴーンの日程作りの筋書きのように多くの応用に使える。どう働くかをより詳しく見よう。図12.89は、あるグラフの2つの異なる彩色を示している。彩色Aは、赤(R)、緑(G)、青(B)、紫(P)の4色を使うので4彩色という。彩色Bは3色を使うので3彩色という。色を使うと、グラフを目で見てグループに分けられる。ただ1つの規則は、隣接する頂点が異なるグループに入るように異なる色であることである。
Two graphs are labeled coloring A and coloring B In the first graph, nine vertices are present. The vertices are arranged in 3 rows and 3 columns. Row 1: B, G, and R. Row 2: G, R, and P. Row 3: P, B, and G. The outer vertices are connected to form a square. A vertical line and a horizontal line at the center connect G R, R B, G R, and R P. Diagonal lines connect B R, R G, G B, and G P. In the second graph, nine vertices are present. The vertices are arranged in 3 rows and 3 columns. Row 1: B, G, and R. Row 2: G, R, and B. Row 3: R, B, and G. The outer vertices are connected to form a square. A vertical line and a horizontal line at the center connect G R, R B, G R, and R B. Diagonal lines connect B R, R G, G B, and G B.
Figure 12.89図12.89
Two Colorings of the Same Graph
英語のヒント
同じグラフの2つの彩色
It turns out that a three-coloring is the best we can do with the graph in Figure 12.89. No matter how many different patterns you try with only two colors, you will never find one in which the adjacent vertices are always different colors. In other words, the graph has a chromatic number of three. For large graphs, computer assistance is usually required to find the chromatic numbers. There is no formula for finding the chromatic number of a graph, but there are some facts that are helpful in Table 12.5.
英語のヒント
図12.89のグラフでは3彩色が最善であることがわかる。2色だけでどんなに多くの異なる型を試しても、隣接する頂点がつねに異なる色になるものは決して見つからない。言いかえると、このグラフの彩色数は3である。大きいグラフでは、彩色数を求めるのにふつうコンピュータの助けが必要である。グラフの彩色数を求める公式はないが、表12.5に役立つ事実がいくつかある。
Table 12.5表12.5
Facts about Graph Colorings
英語のヒント
グラフの彩色についての事実
Fact事実Example例
Recall that planar graphs are untangled; that is, they can be drawn on a flat surface so that no two edges are crossing. If a graph is planar, it can be colored with four colors or possibly fewer. 平面グラフはほどかれている、つまり2つの辺が交差しないように平らな面に描けることを思い出そう。グラフが平面的なら、4色かそれより少ない色で塗れる。
Three graphs. The first graph titled tangled has nine vertices labeled a to i. The edges connect a b, a d, a e, c e, e g, e i, g f, f i, and i h. The second graph titled untangled has nine vertices labeled a to i. The edges connect a b, a d, a e, e c, e g, e i, i h, i f, and g f. The third graph titled 4 or fewer colors has nine vertices a to i in red, green, green, green, blue, blue, green, blue, and red. The edges connect a b, a d, a e, e c, e g, e i, i h, i f, and g f.
Each vertex in a complete graph is adjacent to every other vertex forcing us to color them all different colors.The chromatic number of a complete graph is the same as the number of vertices. 完全グラフの各頂点はほかのすべての頂点に隣接しているので、すべて異なる色で塗らなければならない。完全グラフの彩色数は頂点の数と同じである。
Two graphs. The first graph has five vertices in red, blue, green, yellow, and purple. All vertices are interconnected. Text reads, 5 vertices and 5 colors. The second graph has four vertices in red, blue, green, and purple. All vertices are interconnected. Text reads, 4 vertices, and 4 colors.
If a graph has a clique, a complete subgraph, then each vertex in the clique must have a different color and the vertices outside the clique may or may not have even more colors. The chromatic number of a graph is at least the number of vertices in its biggest clique. グラフにクリーク、つまり完全部分グラフがあるなら、クリークの各頂点は異なる色でなければならず、クリークの外の頂点はさらに色があってもなくてもよい。グラフの彩色数は、少なくともいちばん大きいクリークの頂点の数である。
Two graphs. The first graph has five vertices in red, green, purple, green, and red. The edges connect R with G, R with P, G with P, P with second G, and second G with the second R. The three colors, R, G, and P are outlined. The second graph has six vertices in red, blue, green, purple, blue, and red. The first four vertices are interconnected and outlined. Purple is connected with the fifth vertex, blue. The fifth vertex is connected to the sixth vertex, red.