プリンキピア

第12章グラフ理論

12.10 Trees12.10 木

A row of trees with no leaves.
Figure 12.203図12.203
In graph theory, graphs known as trees have structures in common with live trees. (credit: “Row of trees in Roslev” by AKA CJ/Flickr, Public Domain)
英語のヒント
グラフ理論では、木と呼ばれるグラフは生きた木と共通の構造をもつ。(出典:AKA CJ の “Row of trees in Roslev”/Flickr、パブリックドメイン)

Learning Objectives学習目標

After completing this section, you should be able to:
英語のヒント
この節を終えると、次のことができるようになる。
  1. Describe and identify trees.
    英語のヒント
    木を述べて見きわめる。
  2. Determine a spanning tree for a connected graph.
    英語のヒント
    連結グラフの全域木を求める。
  3. Find the minimum spanning tree for a weighted graph.
    英語のヒント
    重みつきグラフの最小全域木を見つける。
  4. Solve application problems involving trees.
    英語のヒント
    木にかかわる応用問題を解く。
We saved the best for last! In this last section, we will discuss arguably the most fun kinds of graphs, trees. Have you every researched your family tree? Family trees are a perfect example of the kind of trees we study in graph theory. One of the characteristics of a family tree graph is that it never loops back around, because no one is their own grandparent!
英語のヒント
最後にいちばんいいものをとっておいた!この最後の節では、おそらくもっとも楽しい種類のグラフ、木を論じる。自分の家系図を調べたことがあるだろうか。家系図は、グラフ理論で学ぶ種類の木の完璧な例である。家系図のグラフの特徴の1つは、決して戻ってくるループにならないことである。誰も自分自身の祖父母ではないからである!

What Is A Tree?木とは何か

Whether we are talking about a family tree or a tree in a forest, none of the branches ever loops back around and rejoins the trunk. This means that a tree has no cyclic subgraphs, or is acyclic. A tree also has only one component. So, a tree is a connected acyclic graph. Here are some graphs that have the same characteristic. Each of the graphs in Figure 12.204 is a tree.
英語のヒント
家系図の話でも森の木の話でも、枝が戻ってきて幹につながることは決してない。つまり、木には閉路部分グラフがない、すなわち非巡回である。木の成分も1つだけである。だから、木とは連結な非巡回グラフである。同じ特徴をもつグラフをいくつか示す。図12.204の各グラフは木である。
Three graphs. Graph T has 15 vertices. The edges are as follows: a b, b c, c d, c i, i j, j k, k o, d e, d l, e n, e m, b f, f g, and g h. Graph P has 6 vertices. The edges are as follows: t s, s r, r q, q p, and p o. Graph S has 7 vertices. The edges are as follows: u t, u v, u w, u x, u y, and u z.
Figure 12.204図12.204
Graphs T, P, and S
英語のヒント
グラフT、P、S
Let’s practice determining whether a graph is a tree. To do this, check if a graph is connected and has no cycles.
英語のヒント
グラフが木かどうかを判断する練習をしよう。これには、グラフが連結で閉路がないかを確かめる。
Example 12.46例題 12.46

Identifying Trees木を見きわめる

Identify any trees in Figure 12.205. If a graph is not a tree, explain how you know.
英語のヒント
図12.205の木を見きわめよ。グラフが木でないなら、どうしてわかるかを説明せよ。
Three graphs. Graph M has 7 vertices. The edges are a b, b f, f g, f c, b c, b d, and d e. Graph N has 6 vertices. The edges are I j, I h, l k, and l m. The edges, I j, and l k intersect each other. Graph P has 6 vertices. The edges are s t, s r, r q, q p, and p o.
Figure 12.205図12.205
Graphs M, N, and P
英語のヒント
グラフM、N、P
Solution解答
  • Graph M is not a tree because it contains the cycle (b, c, f).
    英語のヒント
    グラフMは閉路(b, c, f)を含むので木ではない。
  • Graph N is not a tree because it is not connected. It has two components, one with vertices h, i, j, and another with vertices k, l, m.
    英語のヒント
    グラフNは連結でないので木ではない。成分が2つあり、1つは頂点h、i、jで、もう1つは頂点k、l、mである。
  • Graph P is a tree. It has no cycles and it is connected.
    英語のヒント
    グラフPは木である。閉路がなく、連結である。