introduced an optimisation to prims.py - edges are ordered tail to head for each vertex so no need to check the tail