update for poj3164,directed_MST
update for hdu2121,no select root Directed_MST