Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dot parser incompatible with graphviz #2

Open
bjorn3 opened this issue May 26, 2018 · 1 comment
Open

Dot parser incompatible with graphviz #2

bjorn3 opened this issue May 26, 2018 · 1 comment

Comments

@bjorn3
Copy link

bjorn3 commented May 26, 2018

If a label contains a html table cfgexplorer requires the label to be between quotes ("), while graphviz requires the label to be between < and >, otherwise it will render it as plain text.

Cfgexplorer:

digraph Mir {
    "bb6" [shape="none", label="<table><tr><td>unreachable</td></tr></table>"];
}

Graphviz:

digraph Mir {
    "bb6" [shape="none", label=<<table><tr><td>unreachable</td></tr></table>>];
}
@devkotasabin
Copy link
Collaborator

Thanks for identifying this issue. CFGExplorer uses graphlib-dot a JS library for parsing dot files. It does not support parsing HTML based node labels (https://github.com/dagrejs/graphlib-dot/wiki#limitations). CFGExplorer uses dagre-d3 which does not use HTML labels for rendering the graphs.

We are looking for alternative parser and renderer which supports HTML based labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants