Added graph clear function.