Vertex text size proportional to the size of the vertex

Yes I saw this before asking. I am sorry that I don't understand it
though. What do I write in front of "vertex_font_weight"?

Thank you

attachment.html (1.23 KB)

To be complete, if I use what you suggested, it leads to a segmentation
fault for me.

attachment.html (1.79 KB)

As everything else so far, this is an argument to graph_draw(), e.g.

    graph_draw(g, vertex_font_weight=cairo.FONT_WEIGHT_BOLD, vertex_text="foo")

It's impossible for me to say anything, since I have no idea of what you are
doing.

Please, post a complete and self-contained example that shows the problem.