【我的DOT语言学习之旅】 学习DOT语言并使用Graphviz软件来打开.dot文件

一、背景描述

最近在研究didi的booster框架,应用到项目中,然后通过执行 assemble task 来构建一个优化过的应用包,构建完成后,在 build/reports/ 目录下会生成相应的 告。

因此,我们得先了解下什么是dot文件,什么是DOT语言/p>

二、什么是DOT语言/h2>
  • 官 地址:http://www.graphviz.org/doc/info/lang.html

  • The DOT Language :https://www.cnblogs.com/itzxy/p/7860073.html

    • dot language 学习笔记:https://www.cnblogs.com/billnote/p/4043267.html

    2.2 常用线条

    • 无向线条、又向线条、双向线条

    2.3 常用箭头

    • box、crow、curve、icurve、diamond、dot、inv、none、normal、tee、vee

    2.4.2 Edge常用属性

    属性名 默认值 说明
    arrowhead normal 箭头样式
    arrowsize 1.0 箭头尺寸
    color black 颜色
    dir forward 箭头方向
    edgeURL 点击跳转地址
    fontcolor black 字体颜色
    fontname Times-Roman 字体
    fontsize 14 字体大小
    headport 线条头部连接处,eg.n、ne、e、se、s、sw、w、nw
    label 描述内容
    labelfontcolor black label字体颜色
    labelfontname Times-Roman label字体
    labelfontsize 14 label字体大小
    style 图形样式,eg.bold、dotted、filled
    tailport 线条尾部连接处,eg.n、ne、e、se、s、sw、w、nw
    weight 1 integer cost of stretching an edge

    2.7 UML

    ps 以下内容摘自: 【dot 语言画类图和 UML 关系】https://www.jianshu.com/p/58333e9314ff

    2.7.1 类图

    2.7.3 多对多

    digraph {    1 -> n [dir = "both"arrowtail = "crow"arrowhead = "crow"taillabel="n  "headlabel="n  "    ]}
    
                                                            

    声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2019年8月15日
下一篇 2019年8月15日

相关推荐