find_path now works for directed graphs too