java - Graphviz special characters -


could guide me how construct

mv-123-1.3.2-23423gf

kind of strings using graphviz api ?

its creating separate circles each token after -

    graphviz gv = new graphviz();   gv.addln(gv.start_graph());   gv.addln("1.0 -> mv-123-1.3.2-23423gf [color=red];");   gv.addln("mv-123-1.3.2-23423gf  -> 1.2 [color=red];");   gv.addln("1.2 -> 1.3 [color=red];");   gv.addln("1.3 -> 2.0;");   gv.addln("2.0 -> 3.0;");   gv.addln("3.0 -> 3.1;");   gv.addln("1.0 -> 2.0;");   gv.addln("1.1 -> 1.3;");   gv.addln("2.5 -> 2.6;");   gv.addln("2.6 -> 3.0 [splines=false];"); 

regards

to keep single token, needs double quotes around it. these have inserted escaped characters in java:

gv.addln("1.0 -> \"mv-123-1.3.2-23423gf\" [color=red];"); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -