1. Install graphviz
brew install graphviz
2. Test using graphviz
Save the file as zhengruiping_test.dot
digraph pic {
zhengruiping -> code
}
3. In the directory where the zhengruiping_test.dot file is located, run the following command
dot zhengruiping_test.dot -T png -o zhengruiping_test.png
The results are as follows: