Each node in YEd is automatically allocated a "node-number" by YEd. This number you can see if you export to the *.tgf format and openth file in an text editor of choice, e.g. Notepad. It is the numbers after the "#" in the "*.tgf" file which shows which nodes are linked to which nodes.
I want to display this number in the node.