Markdown Graph

Markdown阅读器打开(https://blog.csdn.net/liu8497/article/details/106860538)

## 1. graph

### 1. Base
```
graph LR 
A-->B
```
```
1. graph LR 从左到右排列 ,同理 RL
2. graph BT 从上到下排列,同理 TB
```

### 2. Content
```
graph LR
A[Content A]-->B[Content B]
B-->C[Content C]
B-->D[Content D]
```

### 3. Shape
```
graph LR
A1-1(Graph Type)-->A2-1(1:Round Rectangle)
A2-1-.-A3-1[表示程序的开始或者结束]

A1-1-->A2-2[2:Rectangle]
A2-2-.-A3-2[一般用作要执行的处理]

A1-1-->A2-3{3:菱形}
A2-3-.-A3-3[表示决策或判断]

A1-1-->A2-4>Particular shape]
A2-4-.-A3-4[Unknown]

A1-1-->A2-5((圆形))
A2-5-.-A3-5[Usecase]
```

### 4. Line
```
graph TB
A-->B0
A---B1
A-.-B2
A-->|Link1|B3
A---|Link2|B4
A==>B5
A===B6
```

### 5. Subgraph
```
graph LR
A-->B
B-->C
D-->C

subgraph Sub1
B-->E
end

subgraph Sub2
B-->F
end
```

### 6. Style
```
graph LR
style A fill:#f9f,stroke:#333,stroke-width:4px,fill-opacity:0.5
style B fill:#ccf,stroke:#333,stroke-width:2px,fill-opacity:1,stroke-dasharray:5,5

A-->B
```

你可能感兴趣的:(Markdown)