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.


How to import a digram Graph Markup Language (.graphml) in yed keeping the original layout

0 votes
I have worked out a diagram using another software and I saved it in .png format.
Then I converted the .png  in Graph Markup Language (.graphml) so that I could open it in Yed.
However, when I open this diagram in Yed it does not maintain the original layout.
Yed then gives me the possibility to choose a layout but nobody reconstructs the diagram like the original imported one.
Is There a solution to this problem?
Thank you in advance.
in Help by (120 points)

Can you provide more information regarding this problem:

  1. Which version of yEd are you using (see "Help" -> "About")?
  2. On which operating system are you runnung yEd?
  3. On which version of Java are you running yEd (see "Help" -> "About")?
  4. Can you upload a corresponding GraphML file here? Please see How to upload files to yEd Q&A? for information on uploading files.

The most likely cause for yEd not "keeping the original layout" is that the layout information is either not included in your GraphML file at all or in a way that yEd cannot extract the layout information. However, without a corresponding GraphML file, there is no way to determine the actual cause.

2 Answers

0 votes

Dear yEd Q&A,

thank you for your availibility.


I am using the yEd version 3.19 on Windows 64bit. Regarding Java I am using the version (buildn1.8.0_181-b13).

In attached the GraphML file I would like to work on with in yEd.




0 votes

Thank you very much for the sample file. yEd cannot reproduce the original layout because in your GraphML file, all nodes have the same coordinates. I.e. your file specifies

<y:Geometry height="30.0" width="30.0" x="0.0" y="0.0"/>

for all nodes. In other words, your file simply does not contain the original layout information.

by [yWorks] (160k points)
Legal Disclosure | Privacy Policy