有人可以指导我如何构建
MV-123-1.3.2-23423GF
使用 Graphviz API 的字符串类型?
它在之后为每个令牌创建单独的圆圈 -
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];");
问候