Skip to content

support for GraphViz "HTML strings" for node or edge labels #272

@jmtd

Description

@jmtd

Hello!

GraphViz supports something called HTML-like labels for some objects. This can be useful for adding some mark-up to edge or node labels (e.g. fractions with <<SUP>1</SUP>/<SUB>2</SUB>2>). A HTML-like label is delimited with a pair of angle brackets instead of double-quotes. E.g.

digraph {
  1 [label="regular label"];
  2 [label=<<B>emboldened label</B>>];
  1 -> 2;
}

resulting in:

tmp

The current handling of attributes in Algebra.Graph.Export.Dot always wraps labels in double-quotes. It would be nice to be able to specify that the HTML-like format was to be used.

(I completely forgot about #44/#47 in the intervening years. I'll try to pick it back up)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions