First version of graph viewer, incl. tests