結果 : can prim's algorithm have cycles