Tuesday, August 30, 2011

git and graphviz



今天研究了一下 git Graphviz graph::easy.

# apt-get install git
# apt-get install graphviz
# perl -MCPAN -e 'install graph::easy' 

# root@haskell-VirtualBox:~/haskell/vcs# cat 1
digraph group1 {
        ca7_agent  ->  vip_scfxf00;
        fxfint_mnt  ->  fxfint_vol;
        fxfint_vol  ->  wssapp_dg;
        tibrv_rvd  ->  vip_scfxf00;
        tibrv_rvd  ->  wssapp_mnt;
        tsmclient_scfxf00  ->  fxfint_mnt;
        tsmclient_scfxf00  ->  vip_scfxf00;
        tsmclient_scfxf00  ->  wssapp_mnt;
        vip_scfxf00  ->  wssapp_MNPXY;
        wss_mgr  ->  vip_scfxf00;
        wss_mgr  ->  wssapp_mnt;
        wssapp_mnt  ->  wssapp_vol;
        wssapp_vol  ->  wssapp_dg;
        wsshttp  ->  fxfint_mnt;
        wsshttp  ->  vip_scfxf00;
        wsshttp  ->  wssapp_mnt;
}





# dot -Tpng -o 1.png 1

 





# dot -Tdot 1 | graph-easy --as=ascii



No comments:

Post a Comment