Make the copy inside simple_cycles a shallow one.

The previous copy copied all the node and edge attributes. Those are unnecessary for the function to work.
Also, in cases where the node attributes cannot be copied, the function fails on the copy and does not perform graph analysis.