<｜begin▁of▁sentence｜>### Instruction:
As a training coordinator, you've been tasked with evaluating the efficiency of a network training program that aims to connect employees based on their roles within the organization. Using your understanding of network analysis, you need to calculate the modularity of this network to determine if the program is effectively promoting interactions between employees of similar roles. The edge set of the network is given as [(0, 1), (0, 2), (1, 3), (2, 3), (2, 4)], and each employee is assigned a type (node type) based on their role within the organization. Your task is to use the igraph library to compute the modularity of the network based on these node types.
### Response:
from igraph import Graph

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

# Calculate modularity
modularity_score = g.modularity(node_types)
print('Modularity:', modularity_score)
<|EOT|>
