First time here? Check out the FAQ!
answered 2016-02-13 12:53:16 +0200
I did not check the whole correctedness of your algorithm, but i can see a syntax error at the line
H.delete_vertices([e[0],e[1]]
At the end of the line, a closing parenthesis is missing.