<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edges [(0, 1), (1, 2), (1, 5), (5, 4), (2, 4), (2, 3), (4, 3), (3, 6)], how can you compute its Estrada index using NetworkX, which measures the graph's '3D compactness'?
### Response:
import networkx as nx

# Create an undirected graph
G = nx.Graph()
# Add edges
G.add_edges_from([(0, 1), (1, 2), (1, 5), (5, 4), (2, 4), (2, 3), (4, 3), (3, 6)])
# Compute Estrada index
estrada_index = nx.estrada_index(G)
print(f'Estrada index: {estrada_index:.5f}')
<|EOT|>
