为图 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 为整数,对于 g 的索引为 i 和 j 的 两个相邻的顶点 vi 和 vj,ci 不等于 cj.
- FindVertexColoring[g,{c1,c2,…}] 使用指定的颜色 ci.
- FindVertexColoring[g,l] 实际上等价于 FindVertexColoring[g,{1,2,…,l}].
- FindVertexColoring 接受以下选项:
-
Method Automatic 使用的方法 PerformanceGoal $PerformanceGoal 优化的目标
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (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)
g = PetersenGraph[];FindVertexColoring[g, Method -> "ILP"]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 /@ graphs用 FindVertexColoring 计算 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 语言. 2021. "FindVertexColoring." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/FindVertexColoring.html.
APA
Wolfram 语言. (2021). FindVertexColoring. Wolfram 语言与系统参考资料中心. 追溯自 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: 07-October-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: 07-October-2026]}