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

how can I change the labels of all of my nodes?

+1 vote
I am trying to anonymize my graph and wanted to re-label all of my nodes with numbers rather than names.  Is there a way to do this in Yed?  Or do I have to export to nodexl and run a vb script on it and reimport back to yed to see the graphics?  If so, could you explain that process.
in Help by
recategorized by

1 Answer

0 votes

No, yEd cannot automatically re-label your nodes with consecutive numbers.

Using a VisualBasic script, you should be able to achieve the desired result with the following approach:

  1. Select all nodes using CTRL+A.  (If you have multiple labels per node, select all node labels instead using "Tools" -> "Select Elements".)
  2. Enter a place holder text (e.g. [LABEL]) in the "Text" field of the properties view in yEd's lower right corner.
  3. Save your diagram as GraphML. (GraphML is an XML-based format and is well-suited to post-processing.)
  4. Use your script to replace all [LABEL] occurrences in the GraphML file with consecutive numbers.
  5. Open your modified file in yEd once again.

Note, if there are group nodes in diagram, you need to open all closed groups for this approach to work.

by [yWorks] (160k points)
how to import .gramphml files back into yed.
Legal Disclosure | Privacy Policy
...