graphvizimage-graphviz

Graphviz Double quotes and Parentheses in nodes


I want to show Double quotes and Parentheses in nodes.

Without using A[label="Rahul(A)"]. I want to show during Rahul(A) -> B


Solution

  • The only way I know to do that (without label) is by enclosing the node name between double quotes, and escaping double quotes which are part of the node name:

    This works:

    "Rahul(A)" -> "Rahul \"B\"";
    

    graphviz output