moved functions

isVertexClicked and isEdgeClicked are now in graph.js and are properties
of the graph object