<｜begin▁of▁sentence｜>### Instruction:
As a landscape architect overseeing the development of a new urban park, we need to ensure that the walkways and connections within the park are efficient and well-designed. Using NetworkX, we can analyze the average path length of the proposed pathways, which will help us determine the overall connectivity and accessibility of the park. By calculating the average path length of the graph represented by the proposed walkways, we can ensure that the park is designed to enhance the visitors' experience and quality of life.
### Response:
import networkx as nx

# Create a NetworkX graph
G = nx.Graph()
G.add_edges_from([(0, 1), (1, 2), (2, 3), (3, 4)])

# Calculate the average path length
avg_path_len = nx.average_shortest_path_length(G)
print('Average path length:', avg_path_len)
<|EOT|>
