Description
The html labels can be arbitrarily long (specifically a Const(StaticArrayValue(...)) can be very long, but graphviz bails out if they exceed 16k. We probably shouldn't write such long labels (maybe just create a label with a prefix followed by ...).
Steps to Reproduce
from hugr import Hugr
with open ("longlabel.txt") as f:
text = f.read()
h = Hugr.from_str(text)
g = h.render_dot()
g.view() # fails
longlabel.txt
Expected Behaviour
No response
Actual Behaviour
No response
Component
No response
Environment
Additional Context
No response
Description
The html labels can be arbitrarily long (specifically a
Const(StaticArrayValue(...))can be very long, but graphviz bails out if they exceed 16k. We probably shouldn't write such long labels (maybe just create a label with a prefix followed by...).Steps to Reproduce
longlabel.txt
Expected Behaviour
No response
Actual Behaviour
No response
Component
No response
Environment
Additional Context
No response