Graphviz Beginner's Guide to Beginners
The origin of contact Graphviz is to encounter a problem, how to visualize the neural network model? If you need to draw a particular model structure and draw one with a variety of software, you need a generic tool.
Search a search to find this library, found mxnet also use Graphviz library to do visualization, examples can see this link.
Here's an Amway quiz: how do you draw beautiful illustrations in your paper? Very dazzling technology, in contrast to Latex pdfplots,python matplotlib and in matplotlib custom Seaborn package, R Ggplot2, there are gunplot and other tools, all kinds of artifice, another eye-opener.
Hello World
Installation of these will not be described, after the installation is complete, try to find the dot command to succeed. Graphviz uses DSL dot to describe the graphical structure, here is a simple example to test
- Save this code as TEST.GV
strict digraph { node_0 -> {node_1 node_2}}
- Executing dot test.gv-tpng-gdpi=300-o in the current directory will generate an image file Test.gv.png
In-depth details
Know not deep, TODO;
Translate an official document:
Dot is a visual hierarchy of tools, the target of the algorithm to point to the same direction, reduce the edge and edge of the intersection, reduce the length of the edge.
More examples
Sample visualization of the model;
Graphviz Beginner's Guide to Beginners