copying edges should be faster, but still not good