Adds script that executes Prim's algorithm