Java applet apply MST's algorithms based on Prim's and Kruskal's methods