Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有向グラフでソース(S)からシンク(S)へのすべての可能なパスを見つける方法は?
これは宿題だと思っているので、完全な回答はできませんが、すべてではないにしてもほとんどの入門用グラフ理論の教科書を参照すれば、答えが得られると思います。長さが 1 ホップ、次に 2 ホップ、3 ホップなどの 2 つの頂点間のパスの数を見つける方法を考えてみてください。