posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          A text2graph tool: Graphviz

          Posted on 2012-05-07 14:47 Milo的海域 閱讀(545) 評論(0)  編輯  收藏 所屬分類: Skills
          Graphviz: a Text to Graph tool

          Download:
           http://www.graphviz.org/Download..php
          Install:
          http://www.graphviz.org/Download_linux_rhel.php

          Document:
          http://www.graphviz.org/Documentation.php

          Example:
          $ cat cluster.dot
          digraph G {

                  subgraph cluster_0 {
                          style
          =filled;
                          color
          =lightgrey;
                          node [style
          =filled,color=white];
                          a0 
          -> a1 -> a2 -> a3;
                          label 
          = "process #1";
                  }

                  subgraph cluster_1 {
                          node [style
          =filled];
                          b0 
          -> b1 -> b2 -> b3;
                          label 
          = "process #2";
                          color
          =blue
                  }
                  start 
          -> a0;
                  start 
          -> b0;
                  a1 
          -> b3;
                  b2 
          -> a3;
                  a3 
          -> a0;
                  a3 
          -> end;
                  b3 
          -> end;

                  start [shape
          =Mdiamond];
                  
          end [shape=Msquare];
          }

          $ dot 
          -Tpng cluster.dot -o cluster.png
          $ gnome
          -open cluster.png



          More examples:
          http://www.graphviz.org/Gallery.php
          主站蜘蛛池模板: 枣庄市| 廊坊市| 北京市| 渭源县| 甘德县| 三穗县| 托里县| 莒南县| 和田市| 东港市| 宝山区| 常山县| 平和县| 山东省| 溆浦县| 全州县| 颍上县| 霍州市| 宕昌县| 毕节市| 亳州市| 永吉县| 乐至县| 苍溪县| 台安县| 成安县| 上思县| 客服| 蒙山县| 晋城| 九江县| 麻栗坡县| 嘉兴市| 乌苏市| 宁城县| 铜陵市| 竹山县| 榆中县| 清河县| 冀州市| 河东区|