private void writeGraphEdge(String label, String source, String target, OutputStream os) throws IOException { final String startTag = getDotSafeName(source) + graphType.getEdge() + getDotSafeName(target); final String endTag = DotConstants.END_LINE; IOUtils.write(startTag, os); if(StringUtils.isNotBlank(label)) { writeOptions(os, new String[] {"label", label}, new String[]{"fontsize", fontSize}); } IOUtils.write(endTag, os); }
private void writeGraphTag(OutputStream os) throws IOException { String name = this.getDotSafeName(graphName); IOUtils.write(graphType.getName()+" "+name+"{" + DotConstants.NL, os); writeGraphNodes(os); writeGraphEdges(os); IOUtils.write("}", os); }
private void writeGraphEdge(String label, String source, String target, OutputStream os) throws IOException { final String startTag = getDotSafeName(source) + graphType.getEdge() + getDotSafeName(target); final String endTag = DotConstants.END_LINE; IOUtils.write(startTag, os); if(StringUtils.isNotBlank(label)) { writeOptions(os, new String[] {"label", label}, new String[]{"fontsize", fontSize}); } IOUtils.write(endTag, os); }
private void writeGraphTag(OutputStream os) throws IOException { String name = this.getDotSafeName(graphName); IOUtils.write(graphType.getName()+" "+name+"{" + DotConstants.NL, os); writeGraphNodes(os); writeGraphEdges(os); IOUtils.write("}", os); }