conditional graph copy