Graph outputs now write directly to PrintStream.

Writing to a StringBuilder was stupid and lead to heap overflows.