Update drawGraph