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.
グラフを .dot ファイルとして出力するスクリプトがあります。次数の異なるすべての頂点を独特の色で強調表示したいと思います。Graphvizで可能ですか?
だから、私は次のことに興味があります:
For each i-degree vertex use color[i].
特別なケースとして、木のすべての葉に特徴的な色を付けるにはどうすればよいでしょうか? :
For each 1-degree vertex use color_A.
グラフ スクリプトを作成するには、graphviz ユーティリティ gvpr を試してください。特に、
gvpr -c 'N[度==1]{color="赤"}'
これを拡張して、配列 (または連想マップ) を定義し、color[$.degree] を検索できます。
スティーブン・ノース