【环境】mac安装graphviz

1、安装graphviz

brew install graphviz

2、测试使用graphviz

文件保存为zhengruiping_test.dot

digraph pic { 
  zhengruiping -> code
}

3、在zhengruiping_test.dot文件所在目录下,运行如下命令

dot zhengruiping_test.dot -T png -o zhengruiping_test.png

结果如下:

猜你喜欢

转载自blog.csdn.net/xiezhen_zheng/article/details/103233226