graph.dup to martshal