<｜begin▁of▁sentence｜>### Instruction:
As a science teacher instructing students in biology, chemistry, or physics at the high school level, imagine you're teaching a lesson on ecosystem dynamics. You've set up an experiment to observe the spread of nutrients in a linear ecosystem model, represented by a series of interconnected tanks labeled A through D. Each tank represents a vertex in a graph, with pipes connecting them to simulate nutrient flow.

Your task is to use the "igraph" Python library to determine and record the distances from the nutrient source, tank A, to all other tanks in the ecosystem. This data will help your students understand how nutrients travel through different parts of the ecosystem, influencing the growth and distribution of organisms.
### Response:
import igraph as ig

# Create a simple undirected graph with A connected to B, B connected to C, and C connected to D
g = ig.Graph.Formula("A--B--C--D")

# Get distances from vertex with name 'A'
vertex_A = g.vs.find(name='A')
distances_from_A = vertex_A.distances()

# Print the distances from 'A'
print(distances_from_A)
<|EOT|>
