removed nodes+edges from grpah after clicking (there is a problem with vertex)