<｜begin▁of▁sentence｜>### Instruction:
As a conservation biologist, imagine you're working on a project to analyze the interconnectedness of species within a habitat network. You have a dataset stored in 'network.gml', representing the relationships between different species. Now, you're interested in understanding the interactions involving a specific species, let's say species 0. To do this, you want to utilize the `all_edges` method in the igraph API. This method allows you to retrieve all the edges connected to species 0, regardless of their direction. So, your task is to employ this method effectively to gather comprehensive data on the interactions involving species 0 within the habitat network.
### Response:
import igraph as ig

# Load graph from file
graph = ig.read('network.gml')

# Select a vertex
vertex_id = 0
vertex = graph.vs[vertex_id]

# Get all edges incident on the selected vertex, regardless of direction
all_edges = vertex.all_edges()

# Print all edges
print('All edges incident on vertex {}:'.format(vertex_id))
for e in all_edges:
    print(e.tuple)
<|EOT|>
