public Graph transpose() { Graph g = copy(); try { g.graph = Transform.transposeOffline(g.graph, 1000); g.reverse = Transform.transposeOffline(g.reverse, 1000); } catch (IOException ex) { throw new Error(ex); } return g; }