<｜begin▁of▁sentence｜>### Instruction:
Imagine we're charting out a festival network where each node represents an artist, and each edge signifies a collaboration between two artists on a song. The connections are as follows: Artist 1 & 2 teamed up for a track, Artist 1 also collaborated with Artist 3, and there's a trio where Artists 2 & 3 joined forces. Furthermore, Artist 3 produced a hit with Artist 4, Artist 4 worked on a rhythm with Artist 5, and to close the loop, Artist 5 circled back to create a melody with Artist 1. To understand the influence and collaboration level within our vibrant music network using NetworkX, could we find out what the core number is for each artist in this lineup, reflecting their centrality amidst these harmonious partnerships?
### Response:
import networkx as nx

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

# Compute the core number for each vertex in the graph
core_nums = nx.core_number(G)

# Print the core numbers
print(core_nums)
<|EOT|>
