<｜begin▁of▁sentence｜>### Instruction:
Given a graph with edge set [(1, 2), (1, 5), (1, 8), (2, 3), (2, 8), (3, 4), (3, 6), (4, 5), (4, 7), (5, 6), (6, 7), (7, 8)], can you compute the subgraph centrality for each node using the subgraph_centrality_exp function from the NetworkX library, and display the results formatted to two decimal places?
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()
G.add_edges_from([(1, 2), (1, 5), (1, 8), (2, 3), (2, 8), (3, 4), (3, 6), (4, 5), (4, 7), (5, 6), (6, 7), (7, 8)])

# Calculate subgraph centralities
sc = nx.subgraph_centrality_exp(G)

# Print the subgraph centrality of each node
for node in sorted(sc):
    print(f'{node} {sc[node]:0.2f}')
<|EOT|>
