how to draw vertex label when loading a graph from file?
Hello there,
I use graph-tool to visualise a graph and save it as a png file. The graph itself was generated with other code, and I load it from an external xml file with load_graph. How to visualise the vertices' labels?
PS: the graph visualises perfectly well without the nodes labels, and I can visualise it with nodes' labels using packages other than graph-tool, i.e. the file is well-formatted.
PS: i use:
vertexLabel = g.new_vertex_property("string")[[BR]] ...[[BR]] vertexLabelg[g.vertex(0)] = 'a'[[BR]]
and:
graph_draw(g, size=(14,14), penwidth=2.0, vprops={"label": vertexLabel, "fillcolor": "#ffffff"}, output="g.png")
to draw the nodes labels of graphs which I generate with graph-tool.
Any help please? Thank you.