<｜begin▁of▁sentence｜>### Instruction:
Given a Pydot graph representing a complete graph with 5 nodes, convert the Pydot graph to a NetworkX graph. Then, if the original NetworkX graph is a MultiGraph, convert it to a simple Graph without parallel edges. Show the edges of both the MultiGraph and the simple Graph.
### Response:
import networkx as nx
import pydot
# Create a complete graph with 5 nodes
K5 = nx.complete_graph(5)
# Convert NetworkX graph to Pydot graph
A = nx.nx_pydot.to_pydot(K5)
# Convert Pydot graph back to NetworkX graph
G = nx.nx_pydot.from_pydot(A)
# To make a Graph instead of a MultiGraph:
G_simple = nx.Graph(G)
print('Edges of G:', G.edges())
print('Edges of G_simple:', G_simple.edges())
<|EOT|>
