<｜begin▁of▁sentence｜>### Instruction:
As an occupational health nurse, I will guide you in simulating a scenario related to workplace safety and employee care that involves using the networkx library to perform a breadth-first search (BFS) on a directed graph. We'll consider a scenario where we need to assess the safety of a network of workstations in an office environment. The directed graph represents the connections between different workstations, and we need to start the safety assessment from a specific workstation (vertex 0) and determine the order in which the workstations are visited during the safety inspection. We will use the NetworkX library to perform the BFS on the directed graph, reflecting the practical application of safety and health measures in the workplace.
### Response:
import igraph as ig

# Create a graph
edges = [(0, 1), (0, 2), (1, 3), (1, 4), (3, 4)]
graph = ig.Graph(edges=edges, directed=True)

# Initialize BFS iterator from vertex 0
bfs_iter = graph.bfsiter(0, ig.OUT)

# Iterate through the vertices in the BFS order
for vertex in bfs_iter:
    print(vertex.index, vertex)
<|EOT|>
