graph api refactoring
greedy algorithms: graph minimum spanning tree Prims algorithm