updated MST to use changed GraphTemplate function signature