January 2020
Intermediate to advanced
346 pages
9h 8m
English
Expanding on the commonly used binary list (or array) representation, we can employ a list of integers, where each integer represents a unique color, while each element of the list matches one of the graph's nodes.
For example, since the Petersen graph has 10 nodes, we can assign each node an index between 0 and 9. Then, we can represent the node coloring for that graph using a list of 10 elements.
For example, let's have a look at what we have in this particular representation:
(0, 2, 1, 3, 1, 2, 0, 3, 3, 0)
Let's talk about what we have here in detail:
Read now
Unlock full access