다음 그래프가 왜 점으로 생성되지 않는지 알아낼 수 있습니까? 나는 문제가 headport와 tailport와 관련이 있다고 생각한다. 내가 그걸 꺼내면 작동하지만, 이상적으로 나는 그것들을 문체적인 이유로 남겨두기를 원합니다.graphviz가 완료되지 않는 문제
digraph G {
nodesep = 0.5;
0 [width=0.75, height=0.75, fontsize=20];
1 [width=0.75, height=0.75, fontsize=20, shape=square];
2 [width=0.75, height=0.75, fontsize=20];
3 [width=0.75, height=0.75, fontsize=20];
4 [width=0.75, height=0.75, fontsize=20];
5 [width=0.75, height=0.75, fontsize=20, shape=square];
6 [width=0.75, height=0.75, fontsize=20];
7 [width=0.75, height=0.75, fontsize=20, shape=square];
8 [width=0.75, height=0.75, fontsize=20, shape=square];
9 [width=0.75, height=0.75, fontsize=20, shape=square];
10 [width=0.75, height=0.75, fontsize=20, shape=square];
11 [width=0.75, height=0.75, fontsize=20, shape=square];
12 [width=0.75, height=0.75, fontsize=20];
subgraph directed{
rankdir= LR;rank= max;
0->1->2->3->4->5->6->7->8->9->10->11->12;
}
subgraph undirected{
rankdir= LR;rank= min;edge[tailport=n,headport=n];
0->1[dir=none, color=red];
0->2[dir=none, color=red];
1->9[dir=none, color=red];
2->3[dir=none, color=red];
2->8[dir=none, color=red];
3->4[dir=none, color=red];
4->8[dir=none, color=red];
7->9[dir=none, color=red];
8->9[dir=none, color=red];
9->10[dir=none, color=red];
9->11[dir=none, color=red];
10->11[dir=none, color=red];
}
}
본질적으로 나는 directed 및 undirected 그래프로 연결되어야하는 노드가 있습니다. 노드 (번호가 0-12)는 다음과 같이 직선으로 나타나야합니다. 0-> 1-> 2-> 3-> 4-> 5-> 6-> 7 → 8 → 9 → 10 → 11 → 12; 방향이없는 가장자리가 북쪽 헤드 포트에 연결하고 노드 사이에 꼬리를 넣기를 원합니다. – Karrde
@Karrde 나는 내 대답을 업데이트했다. 당신은 귀하의 의견에 귀하의 질문에 정보를 추가해야합니다, 그것은 당신이 무슨 일을하는지 이해하는 것이 유용합니다. – marapet