I have created a node using pydot
and GraphViz as follows:
import pydot
graph = pydot.Dot(graph_type = 'digraph')
a = pydot.Node("First Node", style = "filled", color = "red")
graph.add_node(a)
I want text of node a
to be bold. How can I do it? Is there any attribute of the node like style, color?
Thank you.
Edit: If I need to add \n in the middle of the text, can I simply put \n in the middle as shown:
<<font face="boldfontname">First\nNode</font>>