<｜begin▁of▁sentence｜>### Instruction:
As a Video Game Developer, you're creating an ambitious new game with a complex network structure. You've built a base graph system with relationships defined between various nodes - let's say the relationships are [('A', 'B'), ('A', 'C'), ('B', 'C'), ('C', 'D')]. Now, you want to optimize the network representation so you can import it into a Pajek graph format for better visual understanding and analysis.

How would you take advantage of NetworkX, a key library for the manipulation and study of the structure of complex networks, to translate this network structure into the Pajek graph format lines, to streamline your development process? Remember, the semantics of the dataset need to be preserved during this transition.
### Response:
import networkx as nx
from networkx.readwrite.pajek import generate_pajek

# Create a graph
G = nx.Graph()
G.add_edges_from([('A', 'B'), ('A', 'C'), ('B', 'C'), ('C', 'D')])

# Generate Pajek format lines
for line in generate_pajek(G):
    print(line)
<|EOT|>
