some graph application.
add prim,kruskal,floyd.