directed weighted api was added