\documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{ctex} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle node {$1$} (1,1) (1,0) rectangle node[circle,draw] (A) {} (2,1); \draw (0,-2) rectangle node {$1$} (1,-1) (1,-2) rectangle node[circle,draw] (B) {} (2,-1); \draw[->] (A) -- ++(1.5,0) node[right] {next}; \draw[->] (B) -- ++(1.5,0) node[right] {\it null}; \node[above] at (1,1) {$p$}; \node[above] at (1,-1) {{\bf new} node}; \end{tikzpicture} \end{document}