Skip to content

DOT graph and HTML-Like attributes, alternative - #706

Merged
d-michail merged 2 commits into
jgrapht:masterfrom
Biron-BI:dotHtmlAttribute2
Oct 31, 2018
Merged

d-michail merged 2 commits into
jgrapht:masterfrom
Biron-BI:dotHtmlAttribute2

Conversation

@PHaroZ

@PHaroZ PHaroZ commented Oct 30, 2018

Copy link
Copy Markdown

Fixes support of HTML-like attribute in DOT graph export.

This is an alternative to #705 as it introduce a new AttributeType.HTML. More details in #698


@d-michail

Copy link
Copy Markdown
Member

What I meant is that the user would provide the attributes. We do not want to force HTML output if it starts with < and ends with >.

The changes should happen only in renderAttributes. The exporter should just check whether the attribute type is HTML (as provided by the user). If it is HTML then it outputs without the \". Otherwise it outputs with the \".

Maybe I want label=<my label which is not html>. This is not HTML and should be rendered as string.

@PHaroZ

PHaroZ commented Oct 31, 2018

Copy link
Copy Markdown
Author

So in this case the only way to provide an HTML label is :

  • do not provide any label through vertexLabelProvider
  • through the vertexAttributeProvider provide an attribute named label of type AttributeType.HTML
    Is that right ?

@d-michail

Copy link
Copy Markdown
Member

Yes. I guess the vertexLabelProvider should also give attributes instead of just values, but such a change would require a lot of deprecation procedures, etc.

@d-michail

Copy link
Copy Markdown
Member

Thanks, I will merge this. Could you send me your full name, in order to include it in the contributors file?

@PHaroZ

PHaroZ commented Oct 31, 2018

Copy link
Copy Markdown
Author

Could you simply add my nickname ? thx

@d-michail
d-michail merged commit 7a47a34 into jgrapht:master Oct 31, 2018
SChudakov pushed a commit to SChudakov/jgrapht that referenced this pull request Jan 9, 2019
* Fixes support of HTML-like attribute in DOT graph export

use a new AytributeType `HTML`, see jgrapht#698

* remove HTML label autodetection
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

Successfully merging this pull request may close these issues.

2 participants