I am trying to view a .graphml file in the graph yEd editor as suggested in this thread. However I have difficulty in viewing the values in the nodes.
When I open the .graphml file it appears as shown in Figure 1. Then I clicked Layout-> Tree-> Directed and without changing any of the properties clicked OK. Then it converts to a tree structure as shown in Figure 2 but doesn't show the node values.
Am I doing anything wrong?

The way label text is represented in my .graphml file is different from how yEd encodes and expect label information. So yEd doesn't pick it up automatically. I need to set the properties manually in order to display the labels.
one drawback is yEd can't automatically detect the layout of the graph. However my file does not contain any layout information at all, anyways. My graph is undirected but yEd interprets it as directed. That is because by default yEd is directed. So if it's undirected we need to select one edge press ctrl+A to select all the nodes, then go to properties view and change the "Source Arrow" and "Target Arrow" properties.



Final output looks like below. This article provides a detailed explanation on how to do the mapping manually.
I would like to thank Mr.Thomas from yED who helped me figure this out.
Also Gephi is another free software that we can use to view .graphml files. Reading graphml is not a default feature in Gephi. During the installation we need to specify (tick the checkbox) indicating we want to read .graphml files. However I think Gephi is more straightforward than yEd.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With