To efficiently traverse the graph, implement an adjacency list rather than an adjacency matrix when the graph is sparse.
グラフを効率的に走査するには、グラフが疎な場合は隣接リストを実装し、隣接行列の代わりにそれを使ってください。
アカウントを持っていませんか? 新規登録
アカウントを持っていますか? ログイン
DiQt(ディクト)
無料
★★★★★★★★★★