separated vertex/edge create and draw functions

also created the drawGraph function