<｜begin▁of▁sentence｜>### Instruction:
Given a path graph with 4 nodes, can you compute the eigenvector centrality using the NetworkX function eigenvector_centrality_numpy and print the centrality of each node?
### Response:
import networkx as nx

# Create a graph
G = nx.path_graph(4)

# Compute the eigenvector centrality for the graph
centrality = nx.eigenvector_centrality_numpy(G)

# Print the eigenvector centrality of each node
for node in centrality:
    print(f"{node} {centrality[node]:0.2f}")
<|EOT|>
