グラフ g の頂点について最小サイズの彩色を求める.
FindVertexColoring[g,{c1,c2,…}]
グラフ g の頂点について彩色{c1,c2,…,ck}を求める.
FindVertexColoring
グラフ g の頂点について最小サイズの彩色を求める.
FindVertexColoring[g,{c1,c2,…}]
グラフ g の頂点について彩色{c1,c2,…,ck}を求める.
詳細とオプション
- FindVertexColoringはグラフ彩色および頂点のラベル付けとしても知られている.
- FindVertexColoringは,通常,スケジューリングや割当て問題のモデル化に使われる.
- FindVertexColoring[g]は,g の頂点について最小サイズの彩色{c1,c2,…,ck}を与える.ただし,ciは整数で指標 i と j を持った g の2つの隣接頂点 viと vjについてciと cjは等しくてはならない.
- FindVertexColoring[g,{c1,c2,…}]は指定された色 ciを使う.
- FindVertexColoring[g,l]は,事実上,FindVertexColoring[g,{1,2,…,l}]に等しい.
- FindVertexColoringは,以下のオプションを取る.
-
Method Automatic 使用するメソッド PerformanceGoal $PerformanceGoal 最適化しようとするパフォーマンスの局面
例題
すべて開く すべて閉じる例 (2)
FindVertexColoring[PetersenGraph[]]g = PetersenGraph[];FindVertexColoring[g, ColorData[106, "ColorList"]]Annotate[g, {VertexStyle -> Thread[VertexList[g] -> %]}]スコープ (7)
FindVertexColoringは無向グラフに使うことができる:
FindVertexColoring[[image]]FindVertexColoring[[image]]FindVertexColoring[[image]]FindVertexColoring[[image]]FindVertexColoring[{1 -> 2, 1 -> 3, 1 -> 4, 1 -> 5, 2 -> 3, 2 -> 5, 3 -> 4, 4 -> 5}]FindVertexColoring[[image], ColorData[3, "ColorList"]]FindVertexColoringは大きいグラフに使うことができる:
g = GridGraph[{10, 10, 10}];AbsoluteTiming[FindVertexColoring[g];]オプション (3)
Method (3)
メソッドは,入力に従って自動的に選択される.小さいグラフには"ILP"を使うことができる:
g = PetersenGraph[];FindVertexColoring[g, Method -> "ILP"]"BacktrackingDS"は,大きすぎないグラフに使うことができる:
g = PetersenGraph[];FindVertexColoring[g, Method -> "BacktrackingDS"]g = GridGraph[{10, 10, 10}];Length[FindVertexColoring[g, Method -> "HybridEA"]]アプリケーション (5)
基本的なアプリケーション (2)
coloring[g_] := Annotate[g, {...}]Multicolumn[Table[coloring[g], {g, {...}}], 3, Spacings -> 2]CompleteGraph[n]の色のシーケンスを求める:
FindSequenceFunction[FindVertexColoring[CompleteGraph[10]], n]CycleGraph[n]:
FindSequenceFunction[FindVertexColoring[CycleGraph[10]], n]日程を組む (1)
モバイル無線周波数の割当て (1)
特性と関係 (6)
graphs = {[image], [image]};Max[FindVertexColoring[#]] == 2& /@ graphsBipartiteGraphQ /@ graphsgraphs = {[image], [image], [image], [image]};Max[FindVertexColoring[#]] == 1& /@ graphsEmptyGraphQ /@ graphsFindVertexColoringを使ってVertexChromaticNumberを計算する:
g = PetersenGraph[];Max[FindVertexColoring[g]]VertexChromaticNumber[g]g = PetersenGraph[];FindVertexColoring[LineGraph[g]]FindEdgeColoring[g]
個の頂点があるグラフ,その彩色数
,独立数
は
≤
を満足する:
g = PetersenGraph[];χ = Max@FindVertexColoring[g];α = Length[First[FindIndependentVertexSet[g]]];VertexCount[g] / α <= χg = WheelGraph[6, VertexLabels -> Automatic]FindVertexColoring[DualPlanarGraph[g]]FindPlanarColoring[g]関連するガイド
テキスト
Wolfram Research (2021), FindVertexColoring, Wolfram言語関数, https://reference.wolfram.com/language/ref/FindVertexColoring.html.
CMS
Wolfram Language. 2021. "FindVertexColoring." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FindVertexColoring.html.
APA
Wolfram Language. (2021). FindVertexColoring. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindVertexColoring.html
BibTeX
@misc{reference.wolfram_2026_findvertexcoloring, author="Wolfram Research", title="{FindVertexColoring}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/FindVertexColoring.html}", note=[Accessed: 09-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_findvertexcoloring, organization={Wolfram Research}, title={FindVertexColoring}, year={2021}, url={https://reference.wolfram.com/language/ref/FindVertexColoring.html}, note=[Accessed: 09-November-2026]}