html.write(" selectGraph('../graphs/" + graphFile.getName() + "', '#realRelationshipsGraph'); ");
html.write(" selectGraph('../graphs/" + twoDegreesGraphFile.getName() + "', '#twoDegreesRelationshipsGraph');");
    public boolean write(Table table, File graphDir, WriteStats stats, LineWriter html) {        File dotFile = new File(graphDir, table.getName() + ".dot");        File graphFile = new File(graphDir, table.getName() + ".png");        File allDotFile = new File(graphDir, table.getName() + "_all_.dot");        File allGraphFile = new File(graphDir, table.getName() + "_all_.png");        File focusedDotFile = new File(graphDir, table.getName() + "_focused_.dot");        File focusedGraphFile = new File(graphDir, table.getName() + "_focused_.png");        try {            if (!DotRunner.generateGraph(dotFile, graphFile))                return false;            html.write("<br/><b title='Tables/views within two degrees of separation from ");            html.write(table.getName());            html.write("'>Close relationships</b>");            if (stats.wroteFocused()) {                html.writeln("<span class='degrees' id='degrees'>");                html.write("&nbsp;&nbsp;within <input type='radio' name='degrees' id='oneDegree' onclick=\"");                html.write("if (!this.checked)");                html.write(" selectGraph('../graphs/" + graphFile.getName() + "', '#realRelationshipsGraph'); ");                html.write("else");                html.write(" selectGraph('../graphs/" + focusedGraphFile.getName() + "', '#focusedRelationshipsGraph');");                html.writeln("\" checked>one");                html.write("  <input type='radio' name='degrees' id='twoDegrees' onclick=\"");                html.write("if (this.checked)");                html.write(" selectGraph('../graphs/" + graphFile.getName() + "', '#realRelationshipsGraph'); ");                html.write("else");                html.write(" selectGraph('../graphs/" + focusedGraphFile.getName() + "', '#focusedRelationshipsGraph');");                html.writeln("\">two degrees of separation");                html.writeln("</span><b>:</b>");            }            String map = stats.wroteFocused() ? "#focusedRelationshipsGraph" : "#realRelationshipsGraph";            if (stats.wroteFocused())                graphFile = focusedGraphFile;            html.writeln("  <a name='graph'><img src='../graphs/" + graphFile.getName() + "' usemap='" + map + "' id='relationships' border='0' alt='' align='left'></a>");            DotRunner.writeMap(dotFile, html);            if (stats.wroteImplied()) {                DotRunner.generateGraph(allDotFile, allGraphFile);                DotRunner.writeMap(allDotFile, html);            }            if (stats.wroteFocused()) {                DotRunner.generateGraph(focusedDotFile, focusedGraphFile);                DotRunner.writeMap(focusedDotFile, html);            }        } catch (IOException noDot) {            printNoDotWarning();            return false;        }        return true;    }