ninetynine-1.3.0: Ninety-Nine Haskell Problems
CopyrightCopyright (C) 2021 Yoo Chung
LicenseGPL-3.0-or-later
Maintainerdev@chungyc.org
Safe HaskellSafe-Inferred
LanguageGHC2021

Solutions.P86

Description

Some solutions to Problems.P86 of Ninety-Nine Haskell Problems.

Synopsis

Documentation

colorGraph :: G -> [(Vertex, Int)] Source #

Color a graph using Welch-Powell's algorithm. Uses distinct integers to represent distinct colors, and returns the association list between vertexes and their colors.