문서의 선택한 두 판 사이의 차이를 보여줍니다.
— |
kb:graphviz [2014/11/06 20:39] (현재) |
||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | ====== Graphviz ====== | ||
+ | 그래프를 그리기 위한 프로그램. 여기서 말하는 그래프는 노드와 에지로 구성되는 그래프, 즉 자료구조에서 말하는 그래프이다. | ||
+ | |||
+ | |||
+ | ====== 한글 사용하기 ====== | ||
+ | dot 소스 파일을 노트패드 등을 이용하여 UTF-8 포맷으로 저장한다. 그리고 fontname을 지정해준다. 주의할 것은 폰트 패밀리 이름을 넘기는 것이 아니라, 폰트 파일 이름을 직접 넘겨야한다는 점이다. | ||
+ | |||
+ | <code> | ||
+ | digraph G | ||
+ | { | ||
+ | node [fontname="Gulim.ttc"] | ||
+ | 한글 -> 영어; | ||
+ | Korean -> English; | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | dot -Tjpg test.dot -o test.jpg | ||
+ | </code> | ||
+ | |||
+ | 노드 이름 외에 한글을 사용하려면 마찬가지로 fontname을 설정해 주면 된다. | ||
+ | |||
+ | <code> | ||
+ | digraph G | ||
+ | { | ||
+ | node [fontname="gulim.ttc" fontsize=9] | ||
+ | edge [fontname="gulim.ttc" fontsize=9] | ||
+ | subgraph [fontname="gulim.ttc" fontsize=9] | ||
+ | ... | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ====== 링크 ====== | ||
+ | * [[http://www.graphviz.org/]] \\ 오피셜 사이트. | ||
+ | * [[http://home.so-net.net.tw/oodtsen/wingraphviz/index.htm | WinGraphviz]] \\ WinGraphviz is a free software base on Graphviz project .It can rander the dot-language to common Image-format. and It's a Windows COM Object,and you can use it in your Windows-application or ASP service without a Unix server. | ||
+ | * [[http://www.linuxjournal.com/article/7275 | An Introduction to GraphViz]] | ||
+ | * [[http://www.oreillynet.com/pub/wlg/8254 | Graphviz - Why draw when you can code?]] | ||
+ | * [[http://devnet.developerpipeline.com/documents/s=9843/cuj0512platis/0512platis.html | GraphViz and C++]] | ||
+ | |||