mermaid icon indicating copy to clipboard operation
mermaid copied to clipboard

Support subgraph without title in flowchart

Open copperybean opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. Sometimes I use subgraph to group a batch of nodes, I do not want to give it a title.

Describe the solution you'd like Currently, I can write a subgraph as following subgraph id [title] So is it possible to set empty title by empty brackets?

Describe alternatives you've considered None

Additional context

copperybean avatar May 03 '22 07:05 copperybean

As far I know, this should work ... try

subgraph identifier[" "]
   a --> b
end
flowchart TB
a --> b
subgraph id[" "]
  b --> c & d & e
end

bmsdubai avatar May 03 '22 15:05 bmsdubai

It works, tks

copperybean avatar May 06 '22 07:05 copperybean

@copperybean close issue #3000

flywire avatar Aug 07 '22 23:08 flywire

As far I know, this should work ... try

subgraph identifier[" "]
   a --> b
end
flowchart TB
a --> b
subgraph id[" "]
  b --> c & d & e
end

Doesn't work for multiple subgraphs. Alternatively, you can use &nbsp instead of identifier[" "], but neither option supports multiple subgraphs.

omartrigui avatar Jul 01 '23 20:07 omartrigui

As far I know, this should work ... try

subgraph identifier[" "]
   a --> b
end
flowchart TB
a --> b
subgraph id[" "]
b --> c & d & e
end
  flowchart TB

a --> b subgraph id[" "] b --> c & d & e end

Doesn't work for multiple subgraphs. Alternatively, you can use &nbsp instead of identifier[" "], but neither option supports multiple subgraphs.

You can use " ", " ", " ", and so on.

edxu96 avatar Dec 13 '23 14:12 edxu96