There are many ways to install graphviz before you start. One-click installation or use.
zypper install graphviz
If it is ubuntu, I believe it is used
sudo apt-get install graphviz
OK. (For details, refer to: source; Phodal's Blog). This is what we want to draw today. The procedure is as follows:
digraph g {graph [rankdir = "LR"];node [fontsize = "16"shape = "ellipse"];edge [];"node0" [label = " 0x10ba8| "shape = "record"];"node1" [label = " 0xf7fc4380| | |-1"shape = "record"];"node2" [label = " 0xf7fc44b8| | |2"shape = "record"];"node3" [label = " 3.43322790286038071e-06|44.79998779296875|0"shape = "record"];"node4" [label = " 0xf7fc4380| | |2"shape = "record"];"node5" [label = " (nil)| | |-1"shape = "record"];"node6" [label = " 0xf7fc4380| | |1"shape = "record"];"node7" [label = " 0xf7fc4380| | |2"shape = "record"];"node8" [label = " (nil)| | |-1"shape = "record"];"node9" [label = " (nil)| | |-1"shape = "record"];"node10" [label = " (nil)| | |-1"shape = "record"];"node11" [label = " (nil)| | |-1"shape = "record"];"node12" [label = " 0xf7fc43e0| | |1"shape = "record"];"node0":f0 -> "node1":f0 [id = 0];"node0":f1 -> "node2":f0 [id = 1];"node1":f0 -> "node3":f0 [id = 2];"node1":f1 -> "node4":f0 [id = 3];"node1":f2 -> "node5":f0 [id = 4];"node4":f0 -> "node3":f0 [id = 5];"node4":f1 -> "node6":f0 [id = 6];"node4":f2 -> "node10":f0 [id = 7];"node6":f0 -> "node3":f0 [id = 8];"node6":f1 -> "node7":f0 [id = 9];"node6":f2 -> "node9":f0 [id = 10];"node7":f0 -> "node3":f0 [id = 11];"node7":f1 -> "node1":f0 [id = 12];"node7":f2 -> "node8":f0 [id = 13];"node10":f1 -> "node11":f0 [id = 14];"node10":f2 -> "node12":f0 [id = 15];"node11":f2 -> "node1":f0 [id = 16];}
Usage
dot -Tps hello.dot -o hello.ps
View with gwenview
gwenview hello.ps