Graphviz Installation and use

Source: Internet
Author: User

Graphviz is a drawing tool developed by several of the famous Bell Labs, which provides the idea of "what you Want", and uses the dot language to write scripts and draw graphs that are easy to understand. Graphviz Installation:

Graphviz has a variety of installation methods, source code and distribution package.

Current most new source download: http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz

Other versions download link references: http://www.graphviz.org/pub/graphviz/stable/SOURCES/

Distribution 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 packs
Yum Install ' graphviz* ' installation Graphviz


Here are a few simple apps to start with.
Graphviz instance:

digraph g{
	node [shape = record,height=.1//I define my following style;  
 	Node0[label = "<f0> |<f1> g|<f2>"];  
	I am a node, I have three attributes, the second name is G, 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 attribute is attached to the second property
	"Node0" of Node4: 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 as shown:


More graphic examples and scripts please refer to: 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.