【发布时间】:2019-03-11 19:22:00
【问题描述】:
digraph finite_state_machine {
size="8,5"
rankdir=LR;
node [shape = doublecircle]; beg, end;
node [shape = circle];
subgraph clusterG1 {
label="area code";
beg -> ac1 [ label = "(" ];
ac1 -> ac2 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
ac2 -> ac3 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
ac3 -> ac4 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
}
ac4 -> ex1 [ label = ")" ];
subgraph clusterG2 {
label="exchange"
ex1 -> ex2 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
ex2 -> ex3 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
ex3 -> ex4 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
}
ex4 -> num1 [ label = "-" ];
subgraph clusterG3 {
label="number"
num1 -> num2 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
num2 -> num3 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
num3 -> num4 [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
num4 -> end [ label = "0,1,2,3,4,\n5,6,7,8,9,0" ];
}
}
给出这个:
(对不起,太小了:)
这是一个简单的线性图。我想从左到右有三个盒子,每个盒子在内部从上到下组织。经过大量的谷歌搜索,我仍然不知道该怎么做!
【问题讨论】:
标签: graphviz