在DOT中强制图形一侧的边缘

时间:2012-04-14 12:04:24

标签: graphviz dot

在DOT中的下图中

graph {
rankdir=LR;
ranksep="1.0";
    "v_1086" [label="A"];
    "v_1023" [label="B"];
    "v_1181" [label="C"];
    "q_-888017763" [label="Q"];
    "c_-961691100" [label="1"];
    "c_-1161934348" [label="2"];
    "c_556655049" [label="3"];
    "v_1023"--"c_-961691100"[label="1.0"];
    "v_1086"--"c_-1161934348"[label="1.0"];
    "v_1181"--"c_556655049"[label="0.9925742574257426"];
    "q_-888017763"--"v_1086" [color="green"];
    "q_-888017763"--"v_1181" [color="indigo"];
    "q_-888017763"--"v_1023" [color="khaki4"];
    "c_-1161934348"--"c_-961691100"[label="1.0"];
    "c_556655049"--"c_-1161934348"[label="0.10282888897110791"];
    "c_556655049"--"c_-961691100"[label="0.006661529339994344"];
    {rank = same;
        "v_1086";
        "v_1023";
        "v_1181";
    };
    {rank = same;
        "q_-888017763";
    };
    {rank = same;
    };
    {rank = same;
        "c_-961691100";
        "c_-1161934348";
        "c_556655049";
    };
}

如何将数字节点之间的边缘移动到左侧。

1 个答案:

答案 0 :(得分:0)

问题中的点呈现为:

graph

在这种情况下,我不明白这个问题:数字节点在右边,而不在左边,我不明白你为什么要在它们之间移动边缘。把它们移到哪里?

很抱歉这不是答案,但我无法在评论中嵌入图片。