您的位置:首页 > 其它

graphviz 的节点形状

2015-11-05 18:43 274 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: