Skip Menu |

This queue is for tickets about the Graph CPAN distribution.

Report information
The Basics
Id: 6926
Status: resolved
Priority: 0/
Queue: Graph

People
Owner: Nobody in particular
Requestors: aschenke [...] csee.usf.edu
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Copy function does not copy graph attributes
The "copy" function does not copy any attributes associated with the original graph into the duplicate graph. Only the nodes and edges are copied. No mention of this fact appears to be made in the documentation, which states: copy $C = $G->copy; Returns a new graph $C corresponding to the graph $G. This can lead to unexpected behavior when you try to copy graphs with attributes.
Graph 0.50 now has deep_copy() interface which should address this issue.