digraph G { bgcolor = "transparent"; truecolor = "true"; rankdir = "LR"; node [label = "N"]; subgraph { rank = "same"; mygraph [label = "# mygraph.dot\ldigraph G {\l Hello -> World\l}\l", shape = "note", fontname = "Courier", fontsize = "10"]; image [label = "", shape = "note", image = "./hello.png"]; } subgraph { rank = "same"; mysite [label = "\nexample.com\n ", shape = "component", fontname = "Arial"]; dotgraph [label = "\ndotgraph.net\n ", shape = "component", fontname = "Arial"]; dotgraph -> mysite [color = "red"] mysite -> dotgraph [color = "blue"] } subgraph cluster_0 { label = "my_page.html"; fontname = "Courier"; fontsize = "10"; color = "black"; zeimage [label = "", shape = "note", image = "./hello.png"]; } mygraph -> mysite [color = "blue"] dotgraph -> image [color = "red"] image -> dotgraph [color = "red"] mysite -> zeimage [color = "red"] }