info below
stateDiagram-v2 state S1 { sub1 -->sub2 } state S2 { sub4 } S1 --> S2 sub1 --> sub4
stateDiagram state CompositeState { YourState123456789012345123456789123456789012345123456789123456789012345123456789123456789012345123456789 --> MyState:a label }
flowchart subgraph CompositeState subgraph AnotherCompositeStateCompositeStateCompositeStateCompositeState YourState --a label--> MyState end end
stateDiagram-v2 state CompositeState { state AnotherCompositeState1234567890 { YourState } }
%%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%% flowchart LR subgraph TOP direction TB subgraph B1 direction RL i1 -->f1 end subgraph B2 direction BT i2 -->f2 end end A --> TOP --> B B1 --> B2