I have troubles when running my old Latex code today (I guess because the corresponding package changed). The problem is that now Latex gives me many errors related to the node names. What should I change to make it work again?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[>=stealth,sloped]
\tikzstyle{hn}=[circle,draw,inner sep=0.01]
\tikzstyle{sn}=[circle,draw,inner sep=0.01,fill=black]
\matrix (tree) [%
matrix of nodes,
minimum size=0.6cm,
column sep=0.8cm,
row sep=0.1cm,
]
{
& & & & & \node[sn]{}; \\
& & & & \node[sn]{}; & \\
& & & \node[sn]{}; & & \node[sn]{}; \\
& & \node[sn]{}; & & \node[sn]{}; & \\
& \node[hn]{}; & & \node[hn]{}; & & \node[sn]{}; \\
\node[hn]{}; & & \node[hn]{}; & & \node[hn]{}; & \\
& \node[hn]{}; & & \node[hn]{}; & & \node[sn]{}; \\
& & \node[hn]{}; & & \node[hn]{}; & \\
& & & \node[hn]{}; & & \node[sn]{}; \\
& & & & \node[sn]{}; & \\
& & & & & \node[sn]{}; \\
};
\draw[-] (tree-6-1)--(tree-5-2){};
\draw[-] (tree-6-1)--(tree-7-2){};
\draw[-] (tree-5-2)--(tree-4-3){};
\draw[-] (tree-5-2)--(tree-6-3){};
\draw[-] (tree-7-2)--(tree-6-3){};
\draw[-] (tree-7-2)--(tree-8-3){};
\draw[-] (tree-4-3)--(tree-3-4){};
\draw[-] (tree-4-3)--(tree-5-4){};
\draw[-] (tree-6-3)--(tree-5-4){};
\draw[-] (tree-6-3)--(tree-7-4){};
\draw[-] (tree-8-3)--(tree-7-4){};
\draw[-] (tree-8-3)--(tree-9-4){};
\draw[-] (tree-3-4)--(tree-2-5){};
\draw[-] (tree-3-4)--(tree-4-5){};
\draw[-] (tree-5-4)--(tree-4-5){};
\draw[-] (tree-5-4)--(tree-6-5){};
\draw[-] (tree-7-4)--(tree-6-5){};
\draw[-] (tree-7-4)--(tree-8-5){};
\draw[-] (tree-9-4)--(tree-8-5){};
\draw[-] (tree-9-4)--(tree-10-5){};
\draw[-] (tree-2-5)--(tree-1-6){};
\draw[-] (tree-2-5)--(tree-3-6){};
\draw[-] (tree-4-5)--(tree-3-6){};
\draw[-] (tree-4-5)--(tree-5-6){};
\draw[-] (tree-6-5)--(tree-5-6){};
\draw[-] (tree-6-5)--(tree-7-6){};
\draw[-] (tree-8-5)--(tree-7-6){};
\draw[-] (tree-8-5)--(tree-9-6){};
\draw[-] (tree-10-5)--(tree-9-6){};
\draw[-] (tree-10-5)--(tree-11-6){};
\end{tikzpicture}
Figure 1.
\end{document}

matrix of nodesand\node{...}! – Paul Gaborit Sep 19 '16 at 13:59