6
としてPNGまたはSVG画像を使用して:私はgraphvizの(ノード<code>d</code>)でカスタムイメージ]ノードを使用しようとしたgraphvizのノード
digraph foo {
rankdir=LR;
node [shape=record];
a [label="{ <data> 12 | <ref> }", width=1.2]
b [label="{ <data> 99 | <ref> }"];
c [label="{ <data> 37 | <ref> }"];
d [image="X_Shape_Pillar_Yellow.png"];
a:ref:c -> b:data [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false, arrowsize=1.2];
b:ref:c -> c:data [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false];
c:ref:c -> d [arrowhead=vee, arrowtail=dot, dir=both, tailclip=false];
}
残念ながら、画像は表示されません。
dot -v -Tpng list.dot -o list.png
私のコード、院生:
は、私が使用してドットファイルをコンパイルしましたpng画像を編集中です。is stored in github
置き換えノードd
をカスタム画像に使用するにはどうすればよいですか?
ありがとう! https://github.com/adamatan/graphviz_linked_list/blob/master/list.png –