I am trying to align 2 simple equations using the align* environment:
\begin{align*}
\phi(\gedge{\tilde{v}_{i_1}}{\tilde{u}_i}) & = \phi(\gedge{\tilde{v}_{i_2}}{\tilde{u}_i}) & = \gedge{v}{u} \\
\phi(\gedge{\tilde{u}_i}{\tilde{v}_{i_1}}) & = \phi(\gedge{\tilde{u}_i}{\tilde{v}_{i_2}}) & = \gedge{u}{v} & \qquad\mathrm{(z\,wl.\,2)}\\
\end{align*}
unfortunately the result I am getting is horrible:

Why is there so much horizontal space before the second = sign?!?
Do not worry about \gedge, it is just an arrow:
% graph edge
\newcommand{\gedge}[2]{%
#1 \to #2%
}%

&. If you want to use multiple alignment spots, you can use thealignatenvironment. – dustin Jul 09 '13 at 21:46