Graph Theory.
pos[node] node_x.append(x) node_y.append(y) text.append(node) node_trace = go.Scatter( x=node_x, y=node_y, mode='markers', hoverinfo='text', marker=dict( showscale=True, size=10, colorbar=dict( thickness=15, title='Node Connections', xanchor='left', ), line=dict(width=2)), text=text # this line