java - How do I use special characters in a dot file node_id? -
i looking forward write script automatically take input file , declare nodes , edges, , produce graph can visualized in visualization software.
i tried dot language , graphviz. language uses grammar declare nodes of graph this: node1;
, node2;
, not allow special character except _
.
it works in cases when want declare node named java.lang.object
shows grammatical error because of presence of .
, can't change grammar.
can me suggestion other language can take input text file , can draw graph on visualization software.
that's quite easy in graphviz, put quotes around node names. or may define first node using simple identifier , 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; }
Comments
Post a Comment