<｜begin▁of▁sentence｜>### Instruction:
As a lighting technician working on a theater production, you're tasked with creating different lighting setups for specific scenes. Imagine you have a detailed diagram of the stage layout, including the positioning of the lights and their connections.

Now, suppose you need to adjust the lighting setup for a specific scene and want to focus on a subset of the lights that illuminate certain key areas. You're looking to use a specific lighting control system, let's call it "LightGraph", to create a subgraph that includes only a certain subset of light connections based on the diagram. Once you've accomplished this, you need to print the list of connected lights in the resulting subgraph.

Can you guide me on how to use the 'subgraph_edges' function in "LightGraph" to accomplish this task and then print the updated list of connected lights in the resulting subgraph?
### Response:
import igraph as ig

# Creating a graph with 7 edges
edges = [(0,1), (0,2), (1,2), (1,3), (3,4), (4,5), (5,6)]
g = ig.Graph(edges=edges)

# Selecting a subset of edges for the subgraph
certain_edges = [(1,2), (1,3), (3,4)]

# Creating the subgraph based on the selected edges
subgraph = g.subgraph_edges(certain_edges, delete_vertices=False)

# Print edge list of the subgraph
print(subgraph.get_edgelist())
<|EOT|>
