# Revision history [back]

The object all as you get as ouptut from graph_colorings is an iterator (can have a look at this stackoverflow post). You can get the colorings one by one using the function next

sage: next(all)
{0: [1, 10, 21, 18, 26, 28, 29, 31],
1: [2, 14, 9, 22, 25, 27, 30, 32],
2: [3, 5, 13, 24],
3: [4, 17, 6, 23]}
sage: next(all)
{0: [1, 10, 21, 18, 26, 28, 29, 31],
1: [2, 14, 9, 22, 25, 27, 30],
2: [3, 5, 13, 24],
3: [4, 17, 6, 23, 32]}


Each time you get a new coloring. The datastructure is a dictionary whose keys are the colors and values are the vertices with the given colors. There is no direct way to get a picture out of it, but this is easy to do using the plotting functions from Sage.

Note that there are > 10000 such colorings... having all of them on one picture might be too much asking for.