go-graphviz icon indicating copy to clipboard operation
go-graphviz copied to clipboard

Setting `cluster=true` is still rendering nodes without a cluster box

Open abhijithda opened this issue 1 year ago • 1 comments

Setting cluster=true is still rendering nodes without a cluster box via this package. Whereas in the playground, it working fine... Similar issue with other attributes like bgcolor...

Sample

digraph "" {
	subgraph test {
		graph [bgcolor=red,
			cluster=true,
			label=test,
			style="filled,rounded"
		];
               a -> b
               c -> b
       }
}

Getting: image

Expected:

image

abhijithda avatar Jan 20 '24 07:01 abhijithda

Looks like if the subgraph name contains cluster prefix, then the cluster box is appearing. Otherwise, the cluster box isn't appearing.

abhijithda avatar Jan 24 '24 05:01 abhijithda