<｜begin▁of▁sentence｜>### Instruction:
Given a graph whose edge set is [(0, 1), (0, 2), (1, 2), (3, 4)], can you use the resource_allocation_index function from NetworkX to compute the index for the pairs of nodes (0, 3) and (2, 3)?
### Response:
import networkx as nx

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

# Compute the resource allocation index
preds = nx.resource_allocation_index(G, [(0, 3), (2, 3)])

# Print the predictions
for u, v, p in preds:
    print(f'({u}, {v}) -> {p:.8f}')
<|EOT|>
