<｜begin▁of▁sentence｜>### Instruction:
As a User Experience Researcher, imagine you are working on a study to enhance the user experience of a social networking platform. You have gathered data on the connections between 5 users on the platform, represented as a linear arrangement of edges: [(0, 1), (1, 2), (2, 3), (3, 4)]. Now you need to use the neighborhood size function in the networkx library to calculate the number of users that each user can reach in one step. This will help you understand the immediate reach and connectivity of users on the platform, which is valuable for improving the overall user experience.
### Response:
import igraph as ig

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

# Get the neighborhood size for each vertex within 1 step
neighborhood_sizes = g.neighborhood_size(order=1)

# Print the neighborhood sizes
print(neighborhood_sizes)
<|EOT|>
