eliminate the daisy buffer, change the method name(writeOutGraph -> writeOutTrace)