<｜begin▁of▁sentence｜>### Instruction:
As a demographer conducting a study on migration patterns, I need to determine the number of reachable destinations from a specified location within a certain distance, considering the directionality of travel routes and excluding locations within a specified minimum distance. This information is vital to understand the potential reach of migration flows and their impact on different regions.
### Response:
from igraph import Graph

# Create a graph with 5 vertices and 7 edges
g = Graph(edges=[(0, 1), (0, 2), (0, 3), (1, 4), (2, 4), (3, 4), (3, 2)])

# Calculate the neighborhood size of vertex 0 with order 2
eighborhood_size = g.neighborhood_size(vertices=0, order=2, mode='all')

print('Neighborhood size:', neighborhood_size)
<|EOT|>
