プリンキピア

第12章グラフ理論

Spanning Trees全域木

Suppose that you planned to set up your own computer network with four devices. One option is to use a “mesh topology” like the one in Figure 12.213, in which each device is connected directly to every other device in the network.
英語のヒント
4台の機器で自分のコンピュータネットワークを組む計画だとする。選択肢の1つは、図12.213のような「メッシュ型トポロジー」を使うことで、各機器がネットワークのほかのすべての機器に直接つながる。
Four illustrations represent the common network configurations. The first illustration represents mesh topology. Six computers are interconnected. The second illustration represents a ring topology. Five computers are connected in a ring. The third illustration represents star topology. A computer at the center is connected to five computers surrounding it. The fourth illustration represents tree topology. Two branches arise from a horizontal bus. Each branch has a computer at the center connected to five computers surrounding it.
Figure 12.213図12.213
Common Network Configurations
英語のヒント
よくあるネットワークの構成
The mesh topology for four devices could be represented by the complete Graph A1 in Figure 12.214 where the vertices represent the devices, and the edges represent network connections. However, the devices could be networked using fewer connections. Graphs A2, A3, and A4 of Figure 12.214 show configurations in which three of the six edges have been removed. Each of the Graphs A2, A3 and A4 in Figure 12.214 is a tree because it is connected and contains no cycles. Since Graphs A2, A3 and A4 are also subgraphs of Graph A1 that include every vertex of the original graph, they are also known as spanning trees.
英語のヒント
4台の機器のメッシュ型トポロジーは、図12.214の完全グラフA1で表せる。頂点が機器を表し、辺がネットワークの接続を表す。しかし、機器はより少ない接続でネットワークにできる。図12.214のグラフA2、A3, A4は、6本の辺のうち3本を除いた構成を示している。図12.214のグラフA2、A3、A4はそれぞれ、連結で閉路を含まないので木である。グラフA2、A3、A4は、もとのグラフのすべての頂点を含むグラフA1の部分グラフでもあるので、全域木とも呼ばれる。
Four graphs. Graph A 1 has four vertices: a, b, c, and d. The edges are a b, b d, d c, c a, a d, and b c. Graph A 2 has four vertices: a, b, c, and d. The edges are a b, b c, and c d. Graph A 3 has four vertices: a, b, c, and d. The edges are a b, a c, and c d. Graph A 4 has four vertices: a, b, c, and d. The edges are a b, a c, and a d.
Figure 12.214図12.214
Network Configurations for Four Devices
英語のヒント
4台の機器のネットワーク構成
By definition, spanning trees must span the whole graph by visiting all the vertices. Since spanning trees are subgraphs, they may only have edges between vertices that were adjacent in the original graph. Since spanning trees are trees, they are connected and they are acyclic. So, when deciding whether a graph is a spanning tree, check the following characteristics:
英語のヒント
定義により、全域木はすべての頂点を訪れてグラフ全体に広がらなければならない。全域木は部分グラフなので、もとのグラフで隣接していた頂点のあいだにしか辺をもてない。全域木は木なので、連結で非巡回である。だから、グラフが全域木かどうかを決めるときは、次の特徴を確かめる:
  • All vertices are included.
    英語のヒント
    すべての頂点が含まれている。
  • No vertices are adjacent that were not adjacent in the original graph.
    英語のヒント
    もとのグラフで隣接していなかった頂点が隣接していない。
  • The graph is connected.
    英語のヒント
    グラフが連結である。
  • There are no cycles.
    英語のヒント
    閉路がない。
Example 12.49例題 12.49

Identifying Spanning Trees全域木を見きわめる

Use Figure 12.215 to determine which of graphs M1, M2, M3, and M4, are spanning trees of Q.
英語のヒント
図12.215を使って、グラフM1、M2、M3、M4のどれがQの全域木かを判断せよ。
Five graphs. Graph Q has six vertices: a, b, c, d, e, and f. The edges are a b, a c, a d, b d, d f, c d, c e, c f, and e f. Graph M 1 has six vertices: a, b, c, d, e, and f. The edges are a b, b d, d c, c e, f, and f d. Graph M 2 has six vertices: a, b, c, d, e, and f. The edges are a b, a d, d f, f e, and e c. Graph M 3 has six vertices; a, b, c, d, e, and f. The edges are b d, d f, a f, f e, and e c. Graph M 4 has six vertices: a, b, c, d, e, and f. The edges are a b, c e, e f, and f d.
Figure 12.215図12.215
Graphs Q, M1, M2, M3, and M4
英語のヒント
グラフQ、M1、M2、M3, M4
Solution解答
  1. Graph M1 is not a spanning tree of Graph Q because it has a cycle (c, d, f, e).
    英語のヒント
    グラフM1は閉路(c, d, f, e)があるので、グラフQの全域木ではない。
  2. Graph M2 is a spanning tree of Graph Q because it has all the original vertices, no vertices are adjacent in M2 that weren’t adjacent in Graph Q, Graph M2 is connected and it contains no cycles.
    英語のヒント
    グラフM2は、もとの頂点をすべてもち、グラフQで隣接していなかった頂点がM2で隣接しておらず、グラフM2は連結で閉路を含まないので、グラフQの全域木である。
  3. Graph M3 is not a spanning tree of Graph Q because vertices a and f are adjacent in Graph M3 but not in Graph Q.
    英語のヒント
    グラフM3は、頂点aとfがグラフM3で隣接しているがグラフQでは隣接していないので、グラフQの全域木ではない。
  4. Graph M4 is not a spanning tree of Graph Q because it is not connected.
    英語のヒント
    グラフM4は連結でないので、グラフQの全域木ではない。
So, only graph M2 is a spanning tree of Graph Q.
英語のヒント
だから、グラフM2だけがグラフQの全域木である。