# How to plot a colored graph from a latin square?

The program will get input in form of a matrix that is a latin square.

This matrix will be dealt with as a blueprint for a complete graph, each cell of the matrix representing the color. How can I plot such matrices?