点有向图是否允许具有不同rankdir的子图? [英] Does the dot Directed Graph allow for subgraphs with a different rankdir?

查看:126
本文介绍了点有向图是否允许具有不同rankdir的子图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 dot 有向图语言,是否可以创建具有不同rankdir的子图?

Using the dot directed graph language, is it possible to create subgraphs with a different rankdir?

我尝试了以下操作,不行尽管子图中存在rankdir = TB,但两个图形还是从左到右。

I tried the following, which didn't work. Both graphs were left to right, despite the presence of rankdir="TB" in the subgraph.

digraph g {
    rankdir="LR";
    LEFT->RIGHT;
    clusterrank="local";

    subgraph cluster1 { 
        rankdir="TB";    
        node[style=filled];         
        color=black;
        TOP->BOTTOM;                
    }   
}

是否有其他语法来获得顶部/底部

Is there some other syntax to get a Top/Bottom and Left/Right graph in the same diagram, or is this not possible?

推荐答案

似乎是一个长期存在的功能要求:
http://www.graphviz.org/bugs/b1279.html

Seems like this is a long standing feature request: http://www.graphviz.org/bugs/b1279.html

这篇关于点有向图是否允许具有不同rankdir的子图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆