Graphviz Beginner's Guide to Beginners

Source: Internet
Author: User
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

  1. Save this code as TEST.GV
strict digraph {  node_0 -> {node_1 node_2}}
  1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.