<｜begin▁of▁sentence｜>### Instruction:
Given a directed graph with edges [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 0)], can you use the Vertex.all_edges method in igraph to retrieve all edges associated with vertex 1, ignoring their direction?
### Response:
from igraph import Graph

# Create an example graph
g = Graph([(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 0)], directed=True)

# Select a vertex
vertex = g.vs[1]

# Use the all_edges method
g_all_edges = vertex.all_edges()

# Print all edges involving the selected vertex, ignoring the direction
for e in g_all_edges:
    print(e.tuple)
<|EOT|>
