Graphviz Installation and Use

Source: Internet
Author: User

Graphviz is a drawing tool developed by several cool people in the famous Bell lab. It provides the concept of "what you think is what you get". It is easy to understand by writing scripts and Drawing Images Using the dot language.

Graphviz installation:

Graphviz has multiple installation methods, including source code and release packages.

Download the latest source code: http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

Other Version Download link reference: http://www.graphviz.org/pub/graphviz/stable/SOURCES/

Release package:

RedHat and centos: http://www.graphviz.org/Download_linux_rhel.php

Fedora: http://www.graphviz.org/Download_linux_fedora.php

Ubuntu: http://www.graphviz.org/Download_linux_ubuntu.php

Yum:

Yum list 'graphviz * 'view installed graphviz package
Yum install 'graphviz * 'install graphviz


The following describes several simple applications as an example.

Graphviz instance:

Digraph G {node [shape = record, Height =. 1 // I have defined the style below me; node0 [label = "<F0> | <F1> G | <F2>"]; // I am a node, I have three attributes, the second is g, and the other two are empty node1 [label = "<F0 >|< F1> E | <F2>"]; node2 [label = "<F0> | <F1> B | <F2>"]; node3 [label = "<F0> | <F1> F | <F2>"]; node4 [label = "<F0> | <F1> r | <F2>"]; node5 [label = "<F0> | <F1> H | <F2>"]; node6 [label = "<F0> | <F1> Y | <F2>"]; node7 [label = "<F0> | <F1> A | <F2>"]; node8 [label = "<F0> | <F1> C | <F2>"]; "node0": F2-> "node4": F1; // my third property is connected to the second property "node0": F0-> "node1": F1; "node1": F0-> "node2": F1; "node1": F2-> "node3": F1; "node2": F2-> "node8": F1; "node2": F0-> "node7": F1; "node4": F2-> "node6": F1; "node4": F0-> "node5": F1 ;}

Style


For more graphics instances and scripts, see: http://www.graphviz.org/Gallery.php.

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.