Problem 677
Coloured Graphs
Let
- The graph is connected and has no cycles or multiple edges.
- Each node is either red, blue, or yellow.
- A red node may have no more than
edges connected to it. - A blue or yellow node may have no more than
edges connected to it. - An edge may not directly connect a yellow node to a yellow node.
For example,
You are also given that
Find
图染色
记
- 该图是连通图、无环、无重边。
- 每个结点被染上红色、蓝色或黄色之一。
- 每个红色结点至多与
条边相连。 - 每个蓝色或黄色结点至多与
条边相连。 - 黄色结点之间不能直接相连。
例如,
还已知
求
Gitalking ...