Added representatives to solution

Added an array of representatives to the class solution, which provide a
conversion between partitions and the nodes used in the graph.