toGraphProgram

Convert all collected traces to a GraphProgram.