2017-10-17 2 views
1

문제가 I 중앙 박스 주위에 화살표의 방향을 제어하는 ​​방법을 찾을 수 없다는 graphviz를 enter image description here제어 graphviz를 화살표 방향

digraph UDEF0 { 
"Plan New Information Program" [shape=box] 
"Issues"      [shape=none] 
"Operation Data"    [shape=none] 
"Program Charter"    [shape=none] 
"Program Team"     [shape=none] 
"Program Plan"     [shape=none] 

"Issues" ->   "Plan New Information Program" 
"Operation Data" -> "Plan New Information Program" 

"Program Charter" -> "Plan New Information Program" 

"Program Team" ->  "Plan New Information Program" 

"Plan New Information Program" -> "Program Plan" 
} 

사용 IDEF0도 예를 그리는.

저는 보이지 않는 남쪽, 북쪽, 동쪽 및 서쪽 노드로 구성된 숨겨진 "프레임"을 사용하여 화살표를 연결하려고했습니다. 불행하게도 "프레임"비어있는 경우에만 잘 작동, 나는 그것을 내 "페이로드"노드를 연결할 때, 구조 나누기 :

digraph UDEF0 { 
    rankdir=LR 
    "Plan New Information Program" [shape=box] 
    "Issues"      [shape=none] 
    "Operation Data"    [shape=none] 
    "Program Charter"    [shape=none] 
    "Program Team"     [shape=none] 
    "Program Plan"     [shape=none] 
    "Program Plan"     [shape=none] 


    "West"     [shape=none] 
    "North"     [shape=none] 
    "South"     [shape=none] 
    "East"     [shape=none] 
    "West" -> "North" -> "East" 
    "West" -> "South" -> "East" 


    "West" -> "Issues" ->   "Plan New Information Program" 
    "West" -> "Operation Data" -> "Plan New Information Program" 

    "North" -> "Program Charter" -> "Plan New Information Program" 

    "South" -> "Program Team" ->  "Plan New Information Program" 

    "East" -> "Plan New Information Program" -> "Program Plan" 
} 

(가)이 그림 스타일을 구현할 수있는 올바른 방법이 있나요? shape = record를 사용

답변

2

당신이 원하는 무엇을 닫고 제공합니다 - 여기 내 재 작성 시도 :

digraph UDEF0 
{ 
    A[ label = "Plan New\nInformation\nProgram", shape=box, style = filled, fillcolor = grey ] 
    B[ shape = record, color = white, label = "{ Operation Data | Issues }" ] 
    node[ shape = none ] 
    c[ label = "Program Charter" ] 
    d[ label = "Program Team" ] 
    e[ label = "Program Plan" ] 

    { rank = same; A B e } 

    c -> A; 
    A -> d[ dir = back ]; 
    edge[ minlen = 3] 
    B -> A; 
    B -> A; 
    A -> e; 
} 

수율을

enter image description here