Added copy graph functionality