@Override
    public String getCode() {
        double r = (double)(getCodeR()/100);
        String str = "\\nccircle[linewidth=" + getLinewidth() + 
                ", linecolor=" + getLineColourString() +
                ", linestyle=" + getLineStyle()+"]{"+getArrowString()+"}{"+
                getStart().getNodeID()+"}{"+r+"}";
        
        String comments = getComments();
        String newLine = System.getProperty("line.separator");
        
        
        if(!comments.isEmpty()){
            if(getLabel().isEmpty()) return comments + newLine + str;
            String labelCode = getLabel().replaceAll("\\\\", "\\\\textbackslash ");
            return comments + newLine + str + newLine + 
                    "\\nbput{"+labelCode+"}";
        }
        
        if(getLabel().isEmpty()) return str;
        String labelCode = getLabel().replaceAll("\\\\", "\\\\textbackslash ");
        return str+newLine+"\\nbput{"+labelCode+"}";
    }