graph copy compiles, but broken