基本图形和线型
## 样例1
```mermaid
graph LR
A[方形]
B(圆角)
C{条件a}
D[结果1]
E[结果2]
F((圆形))
G[方形]
X[结果3]
A --实线--> B
B -.虚线.-> A
B --长直线----> G
B --> C
C ==> |粗实线| D
C -.无箭头虚线.- E
C --无箭头实线--- X
B --> F
<a name="pwDRK"></a>
### ![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428206480-800d2a1e-5809-47a0-948b-83e311304763.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=u1e778b9a&margin=%5Bobject%20Object%5D&name=image.png&originHeight=447&originWidth=815&originalType=url&ratio=1&rotation=0&showTitle=false&size=41285&status=done&style=none&taskId=u62848af3-85a6-46df-8512-e926f781fa2&title=)扩展图形和线形
```java
## 样例2
```mermaid
flowchart LR
H([体育场形])
I[(圆柱形)]
J[[子程序形]]
K{{六角形}}
L[/平行四边形/]
M[\反向平行四边形\]
N[/梯形\]
O[\反向梯形/]
H <--双向--> I
J x--取消--x K
L o--圆点连接--o M
N --变形--> O
![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428229246-cc8817db-65c3-402b-83e5-4cd00fab33d0.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=uddb7c4f2&margin=%5Bobject%20Object%5D&name=image.png&originHeight=442&originWidth=514&originalType=url&ratio=1&rotation=0&showTitle=false&size=30031&status=done&style=none&taskId=u905706ca-ad4c-4fe6-95ba-84428aa91b4&title=)
<a name="IPEM6"></a>
### 线性图
```java
### 线型图
```mermaid
graph LR
emperor((朱八八))-.子.->朱五四-.子.->朱四九-.子.->朱百六
朱雄英--长子-->朱标--长子-->emperor
emperor2((朱允炆))--次子-->朱标
朱樉--次子-->emperor
朱棡--三子-->emperor
emperor3((朱棣))--四子-->emperor
emperor4((朱高炽))--长子-->emperor3
![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428249775-54789b5a-a672-4da7-8534-2d54153c9ec6.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=u678b5a5e&margin=%5Bobject%20Object%5D&name=image.png&originHeight=539&originWidth=986&originalType=url&ratio=1&rotation=0&showTitle=false&size=53065&status=done&style=none&taskId=u8ccabf44-e497-404c-b81f-1f6e39a3e92&title=)
<a name="l9ZUC"></a>
### 饼形图
```java
### 饼形图
```mermaid
pie
title 为什么总是宅在家里?
"喜欢宅" : 15
"天气太热或太冷" : 20
"穷" : 50
![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428266266-cb35929d-9f53-4f5a-bbfc-6b2040414c97.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=u12db1e62&margin=%5Bobject%20Object%5D&name=image.png&originHeight=476&originWidth=737&originalType=url&ratio=1&rotation=0&showTitle=false&size=42988&status=done&style=none&taskId=u74d703b3-0c13-44c5-b735-33a1101b948&title=)
<a name="hniQp"></a>
### 流程图
```java
### 流程图
```mermaid
graph LR
A[Start] --> B{Is it?};
B -- Yes --> C[OK];
C --> D[Rethink];
D --> B;
B -- No ----> E[End];
![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428289503-110cca31-b48d-4806-8897-5f1caa2074eb.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=u994c7193&margin=%5Bobject%20Object%5D&name=image.png&originHeight=246&originWidth=779&originalType=url&ratio=1&rotation=0&showTitle=false&size=20707&status=done&style=none&taskId=u2af7c8fb-1f3e-4b3c-8f99-54f1c405998&title=)
<a name="PFLsY"></a>
### 多重链
```java
### 多重链
```mermaid
graph
a --> b & c--> d
A & B--> C & D
X --> M
X --> N
Y --> M
Y --> N
![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428386646-bdef750c-8fb0-460a-8340-e97eac8fdae7.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=u2f04ba9c&margin=%5Bobject%20Object%5D&name=image.png&originHeight=393&originWidth=655&originalType=url&ratio=1&rotation=0&showTitle=false&size=31841&status=done&style=none&taskId=ud192dc3d-49da-4444-abad-037f770e7f2&title=)
<a name="Uf8Ts"></a>
### 子图
```java
### 子图
```mermaid
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
![image.png](https://cdn.nlark.com/yuque/0/2022/png/26803611/1656428407215-8610a098-98c5-4ed1-8522-ce4d416c90a2.png#clientId=u419e4faf-a92e-4&crop=0&crop=0&crop=1&crop=1&from=paste&id=uc43bc466&margin=%5Bobject%20Object%5D&name=image.png&originHeight=469&originWidth=386&originalType=url&ratio=1&rotation=0&showTitle=false&size=22433&status=done&style=none&taskId=u4207c9e9-b928-4384-9cd3-76422d6f1d7&title=)
<a name="GK9h1"></a>
### 注释
```java
### 注释
```mermaid
graph LR
%%这是一条注释,在渲染图中不可见
A[Hard edge] -->|Link text| B(Round edge)
B --> C{Decision}
C -->|One| D[Result one]
C -->|Two| E[Result two]
```