2016-11-05 12 views
1

나는 splines=ortho을 사용하고 있으며 가장자리가 붕괴되기를 바랬습니다.어떻게 직교 그래프에서 모서리를 결합 할 수 있습니까?

enter image description here

나는이 시도 :

digraph G { 
    splines=ortho; 

    edge [dir=none]; 
    node [shape=diamond, label="", height=0.1, width=0.1]; 

    start -> a [weight=10]; 
    start -> b; 
    start -> c; 
    start -> d; 
    start -> e; 
} 

을하지만이처럼 보이는 끝 :

enter image description here

방법에 대한 단서 나는이 작업을 수행하려면, 설명하기 가장자리를 서로 겹치게 만들 수 있습니까?

+0

페이지를 산출을 (http://stackoverflow.com/questions/33446775/node-placement-in-family-tree-visualization-with-dot-graphviz/33451324#33451324) 빈 노드를 사용하는 방법에 대한 ro – vaettchen

답변

0

당신은 start와 같은 수준에서 빈 노드를 작성하고 먼저 연결 한 다음 그래프의 나머지 그릴 필요 :

digraph G 
{ 
    node[ shape = point, label="", height=0, width=0 ] 01 02 03 04; 
    node[ shape=diamond, label="", height=0.1, width=0.1 ]; 
    { rank = same; start 01 02 03 04; } 

    edge [dir=none]; 
    start -> 01 -> 02 -> 03 -> 04[ minlen = 2 ]; 
    start -> a [weight=2]; 
    01 -> b; 
    02 -> c; 
    03 -> d; 
    04 -> e; 
} 

는 [여기]

![enter image description here