graph draw working