Copyright | Copyright (C) 2021 Yoo Chung |
---|---|

License | GPL-3.0-or-later |

Maintainer | dev@chungyc.org |

Safe Haskell | Safe-Inferred |

Language | GHC2021 |

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

## Synopsis

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

# 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.