<｜begin▁of▁sentence｜>### Instruction:
As a geotechnical engineer investigating soil conditions for a construction project, you have gathered data on the spatial connectivity between different ground locations. Imagine these locations as nodes in a network. You obtained a set of edges [(0, 1), (0, 2), (1, 3), (2, 3), (3, 4)], indicating the paths between these locations.

Using the bfs function available in the network analysis tool you are working with, you are required to initiate a breadth-first search starting from location 0. The goal is to identify the order in which locations are visited, along with their corresponding layers in the network and the parent location from which each one is reached during the search process. This information will aid in assessing the connectivity and relationship between different areas of the project site.
### Response:
from igraph import Graph

# Define a graph with edges
edges = [(0, 1), (0, 2), (1, 3), (2, 3), (3, 4)]
# Create the graph
g = Graph(edges)

# Conduct a BFS starting from vertex 0
bfs_result = g.bfs(0)

# Print the BFS result
print('Vertices in BFS order:', bfs_result[0])
print('Layers and parents:', bfs_result[1])
<|EOT|>
