Add Weighted Directed Graph algoritham and relavent test cases