graph LR A(("A\n w=2")) B(("B\n w=3")) C(("C\n w=1")) D(("D\n w=4")) E(("E\n w=2")) A --- B A --- C B --- D C --- D C --- E D --- E style A fill:#c8e6c9,stroke:#2e7d32,stroke-width:3px,color:#2e3440 style B fill:#fff3e0,stroke:#e65100,stroke-width:3px,color:#2e3440 style C fill:#c8e6c9,stroke:#2e7d32,stroke-width:3px,color:#2e3440 style D fill:#fff3e0,stroke:#e65100,stroke-width:3px,color:#2e3440 style E fill:#c8e6c9,stroke:#2e7d32,stroke-width:3px,color:#2e3440
graph LR subgraph "Hypergraph Edges" E1("(e1\n w=2)") E2("(e2\n w=5)") E3("(e3\n w=3)") end subgraph "Vertices" V1(v1) --- E1 V2(v2) --- E1 V2 --- E2 V3(v3) --- E2 V3 --- E3 V4(v4) --- E3 end style E1 fill:#c8e6c9,stroke:#2e7d32,stroke-width:3px,color:#2e3440 style E2 fill:#ffcdd2,stroke:#c62828,stroke-width:3px,color:#2e3440 style E3 fill:#c8e6c9,stroke:#2e7d32,stroke-width:3px,color:#2e3440 style V1 fill:#e3f2fd,stroke:#1565c0,stroke-width:3px,color:#2e3440 style V2 fill:#e3f2fd,stroke:#1565c0,stroke-width:3px,color:#2e3440 style V3 fill:#e3f2fd,stroke:#1565c0,stroke-width:3px,color:#2e3440 style V4 fill:#e3f2fd,stroke:#1565c0,stroke-width:3px,color:#2e3440