I am not very familiar with the tikz package. Reading here and there on internet, I managed to do this
\begin{tikzpicture}
[node distance=.8cm,
start chain=going below,]
\node[punktchain, join] (Telegrapher){Telegrapher's equations $\begin{aligned}
\frac{d}{d z} {\vec V} \left(z,s\right) &=-\vec Z'(s){\vec I}\left(z,s\right) \\
\frac{d}{d z} {\vec I} \left(z,s\right) &=-\vec Y'(s){\vec V} \left(z,s\right)\label{test}
\end{aligned}$};
\node[punktchain, join] (test) {test};
\end{tikzpicture}
with this definitions for the nodes:
\usepackage{tikz}
\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols}
\tikzset{
>=stealth',
punktchain/.style={
rectangle,
rounded corners,
% fill=black!10,
draw=black, very thick,
text width=25em,
minimum height=3em,
text centered,
on chain},
line/.style={draw, thick, <-},
element/.style={
tape,
top color=white,
bottom color=blue!50!black!60!,
minimum width=8em,
draw=blue!40!black!90, very thick,
text width=10em,
minimum height=3.5em,
text centered,
on chain},
every join/.style={->, thick,shorten >=1pt},
decoration={brace},
tuborg/.style={decorate},
tubnode/.style={midway, right=2pt},
}
Now my question is: in my node, I have an equation. I would like it to be numbered as all the other equations in my latex, or at least I would like to be able to refer to it. Now I have used \label{test}, but when I refer with \ref{label} it seems to take the section as a reference.
Do you know how to properly refer to an equation built inside a node, in a graph?

\begin{align}instead of$\begin{aligned}and\end{align}instead of\end{aligned}$? – Vincent Nivoliers Apr 30 '15 at 11:27equationoralign(if you want numbers for all lines) – Apr 30 '15 at 11:53\tikzstyle{mybox} = [draw=black, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]– user123349 Apr 30 '15 at 12:13\begin{minipage}{0.90\textwidth}instead of\begin{minipage}{0.50\textwidth}and it works fine! Thank you! – user123349 Apr 30 '15 at 12:19