dot-to-ascii icon indicating copy to clipboard operation
dot-to-ascii copied to clipboard

Record shaped nodes rendering

Open p-gen opened this issue 4 years ago • 3 comments

Hi, I wasn't able to render record shaped nodes. Is it possible to render something like that?

digraph structs {
	node[shape=record]
	struct1 [label="<f0> left|<f1> mid\ dle|<f2> right"]
	struct2 [label="{<f0> one|<f1> two\n\n\n}" shape=Mrecord]
	struct3 [label="hello\nworld |{ b |{c|<here> d|e}| f}| g | h"]
	struct1:f1 -> struct2:f0
	struct1:f0 -> struct3
}

p-gen avatar Feb 17 '20 18:02 p-gen

Looks like the "Mrecord" shape is not supported. If you just change it to "record" it should render:

https://dot-to-ascii.ggerganov.com/?src_hash=5b908fa7

ggerganov avatar Feb 18 '20 13:02 ggerganov

Thank you, I hope Mrecords will be supported soon

p-gen avatar Feb 19 '20 18:02 p-gen

dot-to-ascii is just a simple wrapper around the Graph::Easy perl cli tool, so support depends on when it gets implemented in Graph::Easy.

ggerganov avatar Feb 19 '20 18:02 ggerganov