add drawing of the graph