labels = {}
for node in G.nodes():
    if node in hubs:
        labels[node] = node
nx.draw(G, with_labels=False)
nx.draw_networkx_labels(G, pos, labels, font_size=16, font_color='r')
Networkx specific nodes labeling