<｜begin▁of▁sentence｜>### Instruction:
Given a connected graph G represented as a cycle graph with 5 nodes, can you use the connected_double_edge_swap function to attempt 10 double-edge swaps on the graph, while keeping the graph connected? Additionally, use a seed for reproducibility and print the number of successful swaps along with the updated edges of the graph.
### Response:
import networkx as nx

# Create a connected graph G
G = nx.cycle_graph(5)

# Perform 10 double-edge swaps on the graph G
nswap = 10
seed = 42 # For reproducible results
actual_swaps = nx.connected_double_edge_swap(G, nswap, seed=seed)

print('Number of successful swaps:', actual_swaps)
print('Updated edges:', G.edges())
<|EOT|>
