2012-07-02 4 views
1

점으로 노드를 원으로 그리고 싶습니다. 원을 그려야하는 다음과 같은 간단한 코드를 사용하고 있습니다. 그러나 그것은 대신 식을 끌어들입니다.graphviz에서 노드 모양을 정의하는 방법은 무엇입니까?

enter image description here

가 어떻게 원을 그리 않습니다

digraph G { 
node [ shape=circle, width=0.5, height = 0.5, fixedsize=true] 
Node1 -> Node1 ; 
Node1 -> Node2; 
Node2 -> Node1; 
Node2 -> Node2; 
}; 

이것은 내가 무엇을 얻을 : 이것은 내 코드?

답변

2

파일에있는 내용이 모두 사실입니다. 서클이 있어야합니다.

image

+1

이제 작동 중입니다. – user1280282

1

예를 들어, 작업을해야 shape="circle" 사용 :

digraph G { 
0 [color="aqua", label="A", shape="circle", style="filled"]; 
1 [color="bisque", label="B", shape="circle", style="filled"]; 
2 [color="blue", label="C", shape="circle", style="filled"]; 
3 [color="blueviolet", label="E", shape="circle", style="filled"]; 
4 [color="brown", label="D", shape="circle", style="filled"]; 
5 [color="burlywood", label="F", shape="circle", style="filled"]; 
6 [color="cadetblue", label="G", shape="circle", style="filled"]; 
0->0 ; 
0->1; 
1->4; 
2->2; 
2->3; 
3->4; 
4->4; 
4->5; 
4->6; 
5->0; 
6->2; 
} 

enter image description here

0
digraph G { 
node [ shape="circle", width=1, height = 1, fixedsize=true]; 
s0 -> s0 [label="a -> x = x.a\ny = y.a"]; 
s0 -> s1 [label="a -> x = x.a\ny = y.a"]; 
s1 -> s0 [label="a -> x = x.a\ny = y.a"]; 
s1 -> s1 [label="a -> x = x.a\ny = y.a"]; 
}; 

출력은 다음과 같습니다

enter image description here

,536,

더 좋은 방법으로 렌더링 할 수 있습니까?

관련 문제