GVEdit中使用graphviz
官方文档
安装完graphviz后,文档在安装目录下,位置如下
E:\Gra2.38\share\graphviz\doc\html
中文乱码解决
将文件保存为utf-8编码
fontname="宋体";


dot语言语法
https://blog.csdn.net/jy692405180/article/details/52077979
https://blog.csdn.net/sd10086/article/details/52979462/
demo
有向图
digraph graph1{ //digraph-> graph--
label="this is a graph";
a[shape="box"];
b[shape="doublecircle"];
i[style="filled"];
ii[style="dotted",fontcolor="red"];
iii[style="solid"];
iiii[style="dashed"];
iiiii[style="bold"];
iiiiii[style="invis"];
aa[style="filled",fillcolor="green"];//The premise of using "fillcolor" is that "style" is "filled"
aaa[style="bold",color="blue"];
bb[width=,hight=];
edge [style="dotted"]; //node[] and edge[] are works for everything after that
a->i;
graph[bgcolor="lightskyblue"];
rankdir="TB"; //LR RL TB BT
//rotate=90;
subgraph cluster_sgh{ //subgraph顧﹍uster
label="this is a subgraph";
bgcolor=yellow;
rankdir="LR";
c[shape="egg",label="this is node c"];
d[label="this is node d"];
}
subgraph cluster_sgh2{
fontname="FangSong"; //鐎涙ぞ缍
label="input chinese";
bgcolor=blue;
e;f;
e->f;
}
subgraph cluster_sgh3{
fontname="SimHei"; //姒涙垳缍
label="youkan input chinese";
bgcolor=red;
g;h;
h->h;
}
/*
table1 [label=<
<table>
<tr>
<td port="one">1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
>];
*/
example [ shape = record, label = "{<head>cell1 | cell2 | cell3}" ];
node [shape=record];
edge [style="bold"];
table1 [label="{<head>cell1|cell2|a}"];
table2 [label="{<head>b|c|d|e}"];
table1:head->table2:head;
}

无向图
graph graph1{
label="this is a graph";
a;b;
a--b;
}

二叉树
digraph g {
node [shape="record", height=.];
node0[label="<f0> |<f1> G|<f2>"];
node1[label="<f0> |<f1> E|<f2>"];
node2[label="<f0> |<f1> B|<f2>"];
node0:f0 -> node1:f1;
node0:f2 -> node2:f1;
}

二叉树2
digraph edge_settings {
A -> B [color = "black", label = 0];
B -> D [color = "black", label = 0];
A -> C [color = "black", label = 1];
B -> E [color = "black", label = 1];
C -> F [color = "black", label = 0];
C -> G [color = "black", label = 1];
D -> H [color = "black", label = 0];
D -> I [color = "black", label = 1];
E -> J [color = "black", label = 0];
E -> K [color = "black", label = 1];
F -> L [color = "black", label = 0];
F -> M [color = "black", label = 1];
G -> N [color = "black", label = 0];
G -> O [color = "black", label = 1];
}

横竖排
digraph g{
node[shape="record"];
a[label="{a|b|c}"]; //vertical column
b[label="<f0>a|<f1>b|<f2>c"]; //horizontal
}

时序图
digraph g {
rankdir="LR";
{
rank="same";
a0 -> a1 -> a2;
}
{
rank="same";
b0 -> b1 -> b2;
}
a1 -> b1;
}

GVEdit中使用graphviz的更多相关文章
- jupyter中使用graphviz
参考: https://www.cnblogs.com/zhanjiahui/p/11335038.html https://blog.csdn.net/linxid/article/details/ ...
- python中使用graphviz环境配置
去官网下载graphviz,并下一步安装 配置graphviz的bin目录到path环境变量下 python相关包: 使用conda注意:conda install graphviz 可能没用,要使用 ...
- Graphviz 环境变量设置
今天晚上解决了一个错误,如下:
- 安装graphviz
环境win10 1. 下载安装包首先进入官网下载msi文件 安装,一路next,不需要注意什么 2.设置环境变量 安装完毕之后,我们需要手动配置环境变量. 找到刚才我们安装地址,进入graphviz, ...
- C 语言资源大全中文版
C 语言资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列的资源整理.awesome-c 是 koz.ross 发起维护的 C 语言资源列表,内容包括了: ...
- Python - 使用pycallgraph生成函数关系图
1- pycallgraph简介 可用于创建python函数关系图,依赖于dot命令,需要先安装 graphviz: HomePage:http://pycallgraph.slowchop.com/ ...
- Python - 使用objgraph生成对象引用关系图
1- objgraph简介 HomePage:https://mg.pov.lt/objgraph/ PyPI:https://pypi.org/project/objgraph/ 一般用于分析pyt ...
- anaconda使用,jupyter notebook的使用方法
1. 通过anaconda安装不同的python环境 1) conda create -n python36 python=3.5 2) 激活虚拟环境: activate python36 # 进 ...
- 基于Doxygen_C语言代码文档一键生成的记录与规范(嵌入式适用)
下位机代码格式规范整合记录 注册 doxygen 账号获取doxygen 的 *.exe 执行文件 https://pan.baidu.com/s/1MF5v-Ts80BysmZtXSqONmg 提取 ...
随机推荐
- 零基础入门学习python--第二章 用Python设计第一个游戏
知识点汇总1. 什么是BIF? BIF(Built-in Functions)内置函数,共68个,可直接调用,方便程序员快速编写脚本程序.输入dir(__builtins__)即可查看所有内置函数,h ...
- <python基础>封装,继承,多态,重写,重载
什么是封装? 所谓的面向对象就是将我们的程序模块化,对象化,把具体事物的特性属性和通过这些属性来实现一些动作的具体方法放到一个类里面,这就是封装.封装是我们所说的面相对象编程的特征之一.除此之外还有继 ...
- java_递归
递归:方法在有结束条件的情况下调用自己本身 public static void main(String[] args) { int i = shu01(5); System.out.println( ...
- /bin /usr/bin /sbin /usr/sbin 目录的作用
/bin是系统的一些指令.bin为binary的简写主要放置一些系统的必备执行档例如:cat.cp.chmod df.dmesg.gzip.kill.ls.mkdir.more.mount.rm.su ...
- HttpClientUitl工具类
public class HttpClient { private CloseableHttpClient httpClient; public HttpClient() { this.httpCli ...
- 【JZOJ2679】跨时代
description 钟逆时针而绕,恶物狰狞的倾巢,我谦卑安静地于城堡下的晚祷,压抑远古流窜的蛮荒暗号,而管风琴键高傲的说,那只是在徒劳.我的乐器在环绕,时代无法淘汰我霸气的皇朝. 你无法预言,因为 ...
- 二分图——poj2239
水题 /* n门课,每门课有一个时间t 要求最大的n->t的匹配 */ #include<iostream> #include<cstring> #include< ...
- duilib教程之duilib入门简明教程3.第一个程序 Hello World
小伙伴们有点迫不及待了么,来看一看Hello World吧:新建一个空的win32项目,新建一个main.cpp文件,将以下代码复制进去: #include <windows.h> #in ...
- 19-11-08-Night
再咕咕咕会被爆捶吗??? ZJ: 喜闻乐见: 27 Miemeng 60 01:59:43 100 01:59:44 0 01:59:44 160 01:59:44 最水的$T1$挂了???? $T2 ...
- VS2010-MFC(对话框:非模态对话框的创建及显示)
转自:http://www.jizhuomi.com/software/162.html 前面已经说过,非模态对话框显示后,程序其他窗口仍能正常运行,可以响应用户输入,还可以相互切换.本节会将上一讲中 ...