結果 : find if path exists in graph python