Browse Source

set font size of edge labels

main
parent
commit
71a997ed83
  1. BIN
      stackexchange_test.pdf
  2. 6
      stackexchange_test.tex

BIN
stackexchange_test.pdf

6
stackexchange_test.tex

@ -10,7 +10,8 @@
shorten > = 3pt,
node distance = 4cm and 4cm,
el/.style = {inner sep=2pt, align=left, sloped},
every label/.append style = {font=\tiny}
every label/.append style = {font=\tiny},
every edge/.append style = {font=\scriptsize} % edge labels
]
\node (data) [state, label=left:{label:10}] {Data};
\node (q1) [state,right=of data] {$s_1$};
@ -19,8 +20,7 @@
\node (q3) [state,below=of data,
label=left:{label:5}] {$s_3$};
\path[->]
(data) edge [in=150,out=90,loop]
node[el,above] {Runs and re-runs} (data)
(data) edge [in=150,out=90,loop] node[el,above] {Runs and re-runs} (data)
(data) edge [bend right=10] node[el,below] {$a=1$} (q1)
(q1) edge [bend right=10] node[el,above] {$a=0$} (data)
(q1) edge [bend right=10] node[el,below] {$a=2$} (q2)

Loading…
Cancel
Save