updated MST to use new GraphTemplate function signature

SSSP BFS