copy graph