after implementing prim algorithm ignoring unnecessary files