Using node attributes in HTML style label

Hi - would it be possible to reference a node’s attribute value inside the HTML-style label. I have a template for the label and the only thing that changes is a custom attribute for the node. So I am trying to see if I can write the same label=< … $ATTRVAL > where $ATTRVAL is replaced by whatever value is specified for node.

Just trying to simply some code generation on top of graphviz.


If I understand your question, unfortunately, no. I think some folks use macro or scripting languages like m4, cpp (the C macro language), awk, python, or gvpr (comes with the Graphviz system) to preprocess the input.