Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Planar graphs and four colors theorem #2

Open
agilot opened this issue Jun 12, 2022 · 0 comments
Open

Planar graphs and four colors theorem #2

agilot opened this issue Jun 12, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@agilot
Copy link
Owner

agilot commented Jun 12, 2022

Description

The four colors theorem states that any (loopless) planar graph admits a four-coloring. In order to add a nice test case to our VertexColoring solver we can implement an algorithm that checks whether a graph is planar and then verify in our test cases whether these graphs can be 4-colored.

Tasks

  • Write a function that checks whether a graph is planar (implementable in $\mathcal{O}(|E|)$)
  • Write a test case that generates random graphs and checks that they admit a 4-coloring when they are planar
@agilot agilot added the enhancement New feature or request label Jun 12, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant