# How to add label on arc of this graph?

In a previous question I enjoyed a beautifull graph How improve tikZ graphs arrows rendering?

How can I add label on arcs produced by:

\draw[arrow] (NodeName)--(OtherNodeName);

-
Do you mean "edge" instead of "arc"? – Tom Bombadil Oct 4 '12 at 21:55

You simply add a node before the semi colon:

## Code:

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\draw[->, ultra thick, blue] (0,0)--(1,2) node [pos=0.5, above, red, sloped] {label};
\end{tikzpicture}
\end{document}

-