Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

30.3. Node, Edge and Graph Attributes

30.3.1. Color Names

http://www.graphviz.org/doc/info/colors.html

线颜色

	subgraph cluster_api {
		#rank=same;
		node [style=filled];
		label = "api";
		#color=blue
		api [label = "api.netkiller.cn"];
		api->redis [color="red"];
		api->mongodb [color="green"];
		api->oracle [color="blue"];
		
	}
			

30.3.2. Node Shapes

http://www.graphviz.org/doc/info/shapes.html

30.3.3. 箭头

digraph G {  
	A -> B [arrowhead="vee"]
	AA -> BB [dir="back" arrowtail="vee"]
	AAA -> BBB [dir="both" arrowhead="vee" arrowtail="odiamond"]
}
			
comments powered by Disqus