Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.


Import of dot files

+57 votes
in Feature Requests by (3.4k points)
edited by
Please do consider incorporating this into the next version, it is an essential part of my workflow for preparing academic papers.

Currently I use yEd to post-process .dot output from a code analysis tool, and have to use dottoxml (which is not packaged anywhere) to do so.
DOT file import would allow to use with yEd many of the existing diagrams (since many open source projects save it that way), or it's the output format of uml/db reverse engineering tools.

Registered just to post this comment. A lot of academic tools use this format. This missing feature is blocking me from always using yED and recommending it to peers. (Now we always copy-pasting everything into http://www.webgraphviz.com/)

3 Answers

+1 vote

If you can install Graphviz, you can use the gv2gml command to convert a DOT (gv) format file to the GML format, which yEd is capable of reading. On Mac OS, I used Homebrew to install it (`brew install graphviz`).

by (170 points)
+1 vote
Oddly, Yed Live supports this as of 2020, but the desktop version still doesn't. Anyway, you can convert dot to graphml using Yed Live
by (260 points)
edited by
Thanks a lot this worked for me
0 votes
edited by
Thanks.  Next opportunity I have to start a graph from a dot, I will try your dottoxml script.
Is there a good reason why yEd developers chose not to support dot naively?
Every time when I try to open a DOT file in yEd I ask myself why it is not supported, even though DOT files are produced by many tools.
I tried dottoxml (2016-04-28) and it does not do the job.  You pretty much have to redo everything.
would be nice to have this native
while calling dottoxml file
i am getting below error:
  File "../tools/dottoxml/dottoxml.py", line 336, in <module>
  File "../tools/dottoxml/dottoxml.py", line 236, in main
    l = unicode(content[idx], options.InputEncoding)
NameError: name 'unicode' is not defined
i am using python 3.7
can someone please help
Legal Disclosure | Privacy Policy