modified the MST and Steiner Tree alg. to support directed graph