graphviz에서 neato를 통해서 이미지로 변환이 가능한데, 예제는 다음과 같다.
가 출력 포맷인데 선택가능한 포맷의 목록은 다음과 같다.
심심해서(?) svg로도 출력을 해보니 잘 나오는데, UNIX 문서로 되어있는지 메모장으로는 깨져 보인다.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.26.3 (20100126.1600)
-->
<!-- Title: _anonymous_0 Pages: 1 -->
<svg width="135pt" height="58pt"
viewBox="0.00 0.00 135.21 57.64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 53.6391)">
<title>_anonymous_0</title>
<polygon fill="white" stroke="white" points="-4,5 -4,-53.6391 132.21,-53.6391 132.21,5 -4,5"/>
<!-- a -->
<g id="node1" class="node"><title>a</title>
<ellipse fill="none" stroke="black" cx="28" cy="-30.1391" rx="27" ry="18.3848"/>
<text text-anchor="middle" x="28" y="-26.5391" font-family="Times Roman,serif" font-size="14.00">a</text>
</g>
<!-- b -->
<g id="node3" class="node"><title>b</title>
<ellipse fill="none" stroke="black" cx="99.2096" cy="-19.5" rx="27" ry="18.3848"/>
<text text-anchor="middle" x="99.2096" y="-15.9" font-family="Times Roman,serif" font-size="14.00">b</text>
</g>
<!-- a->b -->
<g id="edge2" class="edge"><title>a->b</title>
<path fill="none" stroke="black" d="M54.5158,-26.1775C57.0762,-25.795 59.7038,-25.4024 62.3407,-25.0084"/>
<polygon fill="black" stroke="black" points="63.0611,-28.4397 72.4342,-23.5004 62.0267,-21.5166 63.0611,-28.4397"/>
</g>
</g>
</svg>