drawGraph function

Drawing a graph with a simple point and click interface.