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.
グラフと開始頂点を指定して、グラフ上でBFSを実行する単純なCプログラムをC++で作成しました。トラバーサルを画像の形で表示したいと思います。同じツールにどのツールを使用できますか?これはPythonで簡単に実行できることは知っていますが、C ++でBFSを実行し、C++でBFSツリーのイメージを生成するのは難しいようです。私の好みのOSはLinuxです。
.dot 形式のファイルを出力し、graphviz.
graphviz