美文网首页
mac os install graphviz guide

mac os install graphviz guide

作者: robertzhai | 来源:发表于2022-04-09 10:38 被阅读0次

what is graphviz ?

  • Graphviz stands for graph visualization
  • Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.

install by brew

  • brew install graphviz

install by port

dot - graphviz version 2.50.0 (20211204.2007)

tip

  • if brew does not work , try port
  • on my computer brew failed but port succed

usage

  • save one file named pic.dot

echo 'digraph { a -> b->c->d->a }' >pic.dot

digraph { a -> b->c->d->a }
  • dot pic.dot -T png -o pic.png

generates


image.png

reference

相关文章

网友评论

      本文标题:mac os install graphviz guide

      本文链接:https://www.haomeiwen.com/subject/yoqpsrtx.html