How do I use special characters in a dot file node_id?

狂风中的少年 提交于 2019-12-05 16:40:25

That's actually quite easy to do in graphviz, simply put some quotes around the node names. Or you may define first your node using a simple identifier and a label attribute.

Both techniques demonstrated here:

digraph g {
  "java.lang.object" -> "my.class";
  "my.class" -> "special < chars >";
  n1 [label="more.strange<node>names"];
  "special < chars >" -> n1;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!