Ich habe versucht, ein benutzerdefiniertes Bild Knoten in graphviz (Knoten d
) zu verwenden:Mit png oder svg Bild als graphviz Knoten
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];
}
Leider wird das Bild nicht angezeigt werden:
ich habe den Punkt Datei zusammengestellt:
dot -v -Tpng list.dot -o list.png
Mein Code, inclu ding das PNG Bild, is stored in github.
Wie verwende ich einen Ersatzknoten d
mit meinem benutzerdefinierten Bild?
Funktioniert, danke! https://github.com/adamatan/graphviz_linked_list/blob/master/list.png –