<｜begin▁of▁sentence｜>### Instruction:
As an animal control officer, you oversee the enforcement of animal-related laws and regulations, investigate animal cruelty cases, and rescue stray or injured animals. One day, a call comes in about a group of interconnected animals who are lost and need to be reunited. Your task is to use the network of their connections and retrieve information about all the other animals associated with a particular animal, while considering the connections in both directions.
### 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|>
