Prototype version of a Kruskals and Primms algorithm teacher