Importing legend in Graph-tool

I am trying to plot a graph of websites but the names are long. and the plot
is not good i want to number each site and then beside the picture name
which number is for which site. could help me how to do it?

Thanks

You should use the "vertex_text" property in graph_draw(). If you want
to control the position relative to the vertex, you should use the
"vertex_text_position" property.

Best,
Tiago