Graph Algorithm and mst with Qt Framework