I am trying to make a picture illustrating Cocke-Younger-Kasami. I am using tikz for this and already found out how to have arrows between table cells. Now I'm having the following problem: I need to branch more than one time and don't know how to do it. I already skimmed the manual but haven't found anything. Hopefully, you can help me.
Here is my code:
\documentclass[a4paper]{scrartcl}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{matrix,chains,scopes,arrows}
\begin{document}
\begin{tikzpicture}[every on chain/.style={join={by <-}}]
\matrix[matrix of math nodes,column sep=2em,row sep=0.3em] (mx) {
V_{1,n} \\
V_{1,n-1} & V_{2,n} \\
\vdots & \vdots & \vdots \\
V_{1,2} & V_{2,3} & \ldots & V_{n-1,n} \\
V_{1,1} & V_{2,2} & \ldots & V_{n-1,n-1} & V_{n,n} \\[1ex]
w_1 & w_2 & \ldots & w_{n-1} & w_n \\
};
{[start chain]
\chainin (mx-1-1);
{[start branch] \chainin (mx-2-1); \chainin (mx-3-1);}
{[start branch] \chainin (mx-2-2); \chainin (mx-3-2);}
}
\end{tikzpicture}
\end{document}
Roughly expected behaviour:


\documentclassand the appropriate packages (especially withtikz) so that those trying to help don't have to recreate it. – Peter Grill Feb 15 '12 at 17:08