zoukankan      html  css  js  c++  java
  • Graphviz quick reference

    Graphviz quick reference

    Graphviz quick reference

    Sample

    Simple

    1: digraph G {
    2: size ="4,4";
    3: main [shape=box]; /* this is a comment */
    4: main -> parse [weight=8];
    5: parse -> execute;
    6: main -> init [style=dotted];
    7: main -> cleanup;
    8: execute -> { make_string; printf}
    9: init -> make_string;
    10: edge [color=red]; // so is this
    11: main -> printf [style=bold,label="100 times"];
    12: make_string [label="make a\nstring"];
    13: node [shape=box,style=filled,color=".7 .3 1.0"];
    14: execute -> compare;
    15: }
    

    Subgraph

    digraph G {
    subgraph cluster0 {
    node [style=filled,color=white];
    style=filled;
    color=lightgrey;
    a0 -> a1 -> a2 -> a3;
    label = "process #1";
    }
    subgraph cluster1 {
    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];
    }
    

    Node, Edge and Graph Attributes

    http://www.graphviz.org/doc/info/attrs.html

    Refrence 1@Page31.

    BTW, Adobe support open the pdf on the specified page 2, but the chrome doesn't support this feature.

    I have another try when I post this blog, the page parameter works. So COOL!!!


    Post by: Jalen Wang (转载请注明出处)

  • 相关阅读:
    [多线程学习笔记]条件变量
    [多线程学习笔记]互斥量
    [多线程学习笔记]线程生命周期
    多定时器队列
    双向环形链表
    多目录,多可执行文件的Makfile的编写
    大工匠
    从零开始打造我的计算机系统【运行效果】
    从零开始打造我的计算机系统【交叉汇编器】
    C中的回调函数
  • 原文地址:https://www.cnblogs.com/jalenwang/p/2913898.html
Copyright © 2011-2022 走看看