First (untested) attempt at a drawGraph function for the visualization