File dotFile = new File(graphDir, dotBaseFilespec + ".dot"); File graphFile = new File(graphDir, dotBaseFilespec + ".png");
File dotFile = new File(graphDir, dotBaseFilespec + "_1degree_.dot"); File graphFile = new File(graphDir, dotBaseFilespec + "_1degree_.png");
    public boolean writeOrphans(Database db, List orphanTables, File graphDir, LineWriter html) throws IOException {        Set orphansWithImpliedRelationships = new HashSet();        Iterator iter = orphanTables.iterator();        while (iter.hasNext()) {            Table table = (Table)iter.next();            if (!table.isOrphan(true)){                orphansWithImpliedRelationships.add(table);            }        }        writeOrphansHeader(db, "Utility Tables Graph", !orphansWithImpliedRelationships.isEmpty(), html);        html.writeln("<a name='graph'>");        try {            iter = orphanTables.iterator();            while (iter.hasNext()) {                Table table = (Table)iter.next();                String dotBaseFilespec = table.getName();                File dotFile = new File(graphDir, dotBaseFilespec + ".dot");                File graphFile = new File(graphDir, dotBaseFilespec + ".png");                LineWriter dot = new LineWriter(new FileWriter(dotFile));                new DotFormatter().writeOrphan(table, dot);                dot.close();                try {                    if (!DotRunner.generateGraph(dotFile, graphFile))                        return false;                } catch (IOException noDot) {                    printNoDotWarning();                    return false;                }                html.write("  <img src='graphs/summary/" + graphFile.getName() + "' usemap='#" + table + "' border='0' alt='' align='top'");                if (orphansWithImpliedRelationships.contains(table))                    html.write(" class='impliedNotOrphan'");                html.writeln(">");            }            iter = orphanTables.iterator();            while (iter.hasNext()) {                Table table = (Table)iter.next();                String dotBaseFilespec = table.getName();                File dotFile = new File(graphDir, dotBaseFilespec + ".dot");                DotRunner.writeMap(dotFile, html);            }            return true;        } finally {            html.writeln("</a>");            writeFooter(html);        }    }