---
title: Links between Nodes
---
flowchart LR
A1 --> B1 %% arrow head
A2 --- B2 %% open link
A3-- Text on link ---B3
A3---|Text on link|B3 %% Same as above
A4-->|Link with arrow head and text|B4
A4-- Link with arrow head and text -->B4 %% Same as above
A5-.->B5; %% Dotted Link
A5-. Dotted link with text .-> B5
A6 ==> B6 %% Thick link
A6 == Think link with text ==> B6
Code
---
title: Links between Nodes
---
flowchart LR
A7 -- text --> B7 -- text2 --> C7 %% chaining
A8 --> B8 & C8--> D8 %% Multiple node links in the same line
Code
---
title: Links between Nodes
---
flowchart TB
A9 & B9--> C9 & D9 %% dependencies
A10 --> C10 %% same as above, but takes 5 lines
A10 --> D10
B10 --> C10
B10 --> D10
Code
---
title: Links between Nodes
---
flowchart LR
%% New arrow types
A11 --o B11
B11 --x C11
%% Multi directional arrows
A12 o--o B12
B12 <--> C12
C12 x--x D12
노드와 간선의 종류는 대충 알아본 것 같고... 이제 실제로 사용을 해보자.
Examples
Code
flowchart TD
A[Start] --> B{Is it?}
B -- Yes --> C[OK]
C --> D[Rethink]
D --> B
B -- No ----> E[End]
-를 몇 개 넣느냐에 따라 최소 길이를 지정할 수 있다.
- 차이에 따라 이렇게 다를 수 있다(- 개수만 다르다):
Code
flowchart TD
A[Start] --> B{Is it?}
B --- Yes ----> C[OK]
C ---> D[Rethink]
D --> B
B -- No --> E[End]
Code
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end