<｜begin▁of▁sentence｜>### Instruction:
As a hydrologist, you have been given a network of interconnected water sources that need to be analyzed. You have a dataset containing the edges of the network: [(0, 1), (1, 2), (2, 3), (3, 4), (1, 3), (2, 4)]. Using the coreness function in networkx, you are tasked with finding and printing the coreness of each water source in order to better understand the flow patterns within the network.
### Response:
import igraph as ig

g = ig.Graph(edges=[(0, 1), (1, 2), (2, 3), (3, 4), (1, 3), (2, 4)])
# Calculate the coreness of each vertex in the graph
coreness = g.coreness(mode='all')
# Print the coreness values
for vertex, core_value in enumerate(coreness):
    print(f'Vertex {vertex}: Coreness {core_value}')
<|EOT|>
