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

Is it possible to map node ids to node labels

0 votes
I have a graphml file where the node ids are strings. Is there a way to have yEd use node id as node label?

Thank You.
in Help by

1 Answer

0 votes

No. GraphML IDs are an implementation detail of the GraphML format. If you need in-application IDs for your graph elements, you need to specify those IDs as extra data:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns">
  <!--Created by yEd 3.14.4-->
  ...
  <key attr.name="ID" attr.type="string" for="node" id="d4">
    <default/>
  </key>

  ...
  <graph edgedefault="directed" id="G">
    <node id="n0">
      <data key="d4"><![CDATA[MyNode01]]></data>
      ...
    </node>
    ...
  </graph>
  ...
</graphml>

 

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