graph TD
A[Start] --> B{Is it working?}
B -->|Yes| C[Great!]
B -->|No| D[Try again]
Examples Library
Top-Down Flowchart Example
graph TD
A[Start] --> B{Is it?}
B -->|Yes| C[OK]
B -->|No| D[End]
C --> E[Process]
E --> A
Left-Right Flowchart Example
graph LR
A[Start] --> B{Decision}
B -->|Option 1| C[Result 1]
B -->|Option 2| D[Result 2]
C --> E[End]
D --> E
Sequence Diagram Example
sequenceDiagram
participant Alice
participant Bob
participant John
Alice-->>John: Hello John, how are you?
loop Healthcheck
John-->>John: Fight against hypochondria
end
John-->>Alice: Great!
John-->>Bob: How about you?
Bob-->>John: Jolly good!
Class Diagram Example
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
+String beakColor
+swim()
+quack()
}