<｜begin▁of▁sentence｜>### Instruction:
As a corporate trainer, imagine you are conducting a training session for employees who work for a transportation company. During the session, you want to demonstrate how to find the shortest path between two locations on a network of routes, which could reflect the transportation routes between different cities. You can use the `igraph` Python package to demonstrate how to calculate the shortest path between Vertex 0 and Vertex 3, taking into account the weights assigned to the edges representing the transportation routes. This could help employees understand how to efficiently plan routes for the transportation of goods or passengers.
### Response:
import igraph as ig

# Create a graph with weighted edges
g = ig.Graph(edges=[(0, 1), (1, 2), (0, 2), (1, 3)], directed=False)
# Assign weights to edges
g.es['weight'] = [1, 3, 2, 4]

# Get the shortest path from vertex 0 to vertex 3
shortest_path = g.get_shortest_paths(0, to=3, weights='weight', output='vpath')

print('Shortest path from vertex 0 to vertex 3:', shortest_path)
<|EOT|>
