首页 > 其他 > 详细

graphviz 的节点形状

时间:2015-11-05 20:26:07      阅读:304      评论:0      收藏:0      [点我收藏+]

graphviz 的节点可以定义不同的外形,比如下面的定义,

digraph tt1{
    a[shape=box];
    c[shape=lpromoter];
    d[shape=doubleoctagon];
    a -> b;
    c -> d;
    d -> b;
}

会产生下面的图形:

技术分享

 

具体 graphviz 支持的节点形状如下图:

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

技术分享

需要注意的是:

The geometries of polygon-based shapes are also affected by the node attributes regular, peripheries and orientation. If shape="polygon", the attributes sides, skew and distortion are also used. If unset, they default to 4, 0.0 and 0.0, respectively.

graphviz 的节点形状

原文:http://www.cnblogs.com/ghj1976/p/4940482.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!