FindVertexColoring
finds a coloring with minimal size for the vertices in the graph g.
FindVertexColoring[g,{c1,c2,…}]
finds a coloring {c1,c2,…,ck} for the vertices in the graph g.
Details and Options
- FindVertexColoring is also known as graph coloring and vertex labeling.
- FindVertexColoring is typically used for modeling scheduling and assignment problems.
- FindVertexColoring[g] gives a coloring {c1,c2,…,ck} with minimal size for the vertices of g where ci are integers and ci is not equal to cj for two adjacent vertices vi and vj of g with indices i and j.
- FindVertexColoring[g,{c1,c2,…}] uses the specified colors ci.
- FindVertexColoring[g,l] is effectively equivalent to FindVertexColoring[g,{1,2,…,l}].
Examples
open allclose allBasic Examples (2)
Scope (7)
FindVertexColoring works with undirected graphs:
Use rules to specify the graph:
Assign distinct colors to adjacent vertices of a graph:
FindVertexColoring works with large graphs:
Applications (5)
Basic Applications (2)
Visualize vertex colorings of parametrized graphs:
Find a sequence of colors of CompleteGraph[n]:
CycleGraph[n]:
Making Schedule (1)
A university has a number of different subjects. Each student is enrolled in some of these subjects. Build a graph where every vertex is a subject and an edge between two vertices means there is a common student:
Find a exam schedule such that no two exams with a common student are scheduled at same time:
Mobile Radio Frequency Assignment (1)
Properties & Relations (6)
Bipartite graphs are two-colorable graphs:
The one-colorable graphs are empty graphs:
Use FindVertexColoring to compute VertexChromaticNumber:
An edge coloring of a graph is just a vertex coloring of its line graph:
A graph with vertices, its chromatic number and independence number satisfies ≤ :
A face coloring of a planar graph is a vertex coloring of its dual:
Text
Wolfram Research (2021), FindVertexColoring, Wolfram Language function, 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