modify Method getMinSpanTree(),no debug