I would like to draw the graph displayed in the following picture with TikZ and also do some modifications:
Firstly I want to carry the labels of the nodes to the inside as a second line.
For instance inside node a it will display a, and then below (0.5 70/70) (preferably with a smaller font than a).
Moreover I would like to change the sizes of the nodes wrt. the the numeric value displayed in the label. So as an example the node e will be approximately twice as big as node a.
Best Answer
Here's one possibility:
The syntax for the
\mynode
command isThe optional argument passes
<options>
to a\node
;<value>
will be used to internally calculate the node size, and also in the label;<name>
will be used for the label and to name the node,<additional text>
is the text that will accompany<value>
in the label.