<｜begin▁of▁sentence｜>### Instruction:
As the restaurant manager overseeing restaurant operations, including staffing, customer service, and financial management, you may be interested in analyzing the efficiency of food delivery from the kitchen to the tables. Suppose you have a restaurant with 10 tables, and you want to analyze the average distance from a specified table to all other tables. Utilizing the networkx library in Python, specifically the distances() method of a Vertex object, you can determine the distances from the specified table to all other tables within the restaurant layout graph.
### Response:
from igraph import Graph

# Create an example graph
g = Graph.Erdos_Renyi(n=10, p=0.5)

# Choose a vertex
vertex_id = 3

# Get the distances from the chosen vertex to all other vertices in the graph
distances_from_vertex = g.vs[vertex_id].distances()

print('Distances from vertex {} to all other vertices:'.format(vertex_id))
print(distances_from_vertex)
<|EOT|>
