• 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 (转载请注明出处)

  • 相关阅读:
    【用例篇】Xmind转为csv 导入禅道
    idea替换当前文件内容
    配置IDEA项目JDK环境
    git 只提交部分修改文件
    `总结TESTNG与JUNIT的异同
    POST请求BODY格式区别
    【转】使用AllureReport生成测试报告
    Springboot+Redis 配置和使用
    【转】git branch 命令查看分支、删除远程分支、本地分支
    [转]Json字符串和map和HashMap之间的转换
  • 原文地址:https://www.cnblogs.com/jalenwang/p/2913898.html
Copyright © 2020-2023  润新知