Prim's algorithm

you shouldn't write `== BOOLEAN` in python. you should either do:

`while COND:` or `while not COND:`