PROJECT EULER · #0677
Coloured Graphs
Let
- The graph is connected and has no cycles or multiple edges.
- Each node is either red, blue, or yellow.
- A red node may have no more than 4 edges connected to it.
- A blue or yellow node may have no more than 3 edges connected to it.
- An edge may not directly connect a yellow node to a yellow node.
For example,
You are also given that
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.