<｜begin▁of▁sentence｜>### Instruction:
Imagine we are composing a unique piece of music where each musician (nodes [1, 2, 3, 4, 5]) is set to play with certain other musicians (edges [(1, 2), (1, 3), (1, 4), (2, 3), (3, 4), (4, 5)]), forming an ensemble. In our composition, we aim for a harmonious arrangement where each musician needs to be synchronised with at least a certain number of other musicians to ensure the ensemble's coherence – this is what we might call the 'musical core' of the piece. 

Could you deduce the 'musical core' number assigned to each musician, which reflects the minimum number of other musicians each one must be in tune with to maintain the integrity of our ensemble's performance? This 'musical core' number will help us understand the robustness of our groupings, and identify the key clusters that are the backbone of our composition.
### Response:
import networkx as nx

# Create a graph
G = nx.Graph()

# Add edges to the graph
G.add_edges_from([(1, 2), (1, 3), (1, 4), (2, 3), (3, 4), (4, 5)])

# Compute the core number for each vertex
core_nums = nx.core_number(G)
print(core_nums)
<|EOT|>
