copy edge attributes when adding a subgraph

With this modification, adding a subgraph copies edge attributes for existing edges