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.

Categories

Imported node and edge IDs are overwritten.

0 votes
Hello,

when I import a self-written GML file to yEd, and then apply an auto-layout routine (hierarchical) on my graph, the IDs of my nodes and edges are overwritten. Is this a bug or intented behavior? I would prefer my IDs to stay as they were at the time of import, as I might want to use them again.
in Help by

1 Answer

0 votes
Short answer: This is the intended behavior.

Long answer: GML and GraphML IDs are format-specific "implementation detail". These IDs are only used during serialization/deserialization process itself and are *not* stored in the in-memory graph structure. E.g. if you create a graph, then save to GML/GraphML and then save the *same* graph again to GML/GraphML, the serializer is allowed to generate completely different IDs.

If you need IDs for your graph elements, add custom ID properties to the nodes and edges ("Edit" -> "Manage Custom Properties") and store your graph in the GraphML format. (yEd does not support custom properties for GML.)
by [yWorks] (161k points)
Legal Disclosure | Privacy Policy
...