{ \newcommand{\nodea}{\node[draw,circle] (a) {$5$}
;}\newcommand{\nodeb}{\node[draw,circle] (b) {$4$}
;}\newcommand{\nodec}{\node[draw,circle] (c) {$ $}
;}\newcommand{\noded}{\node[draw,circle] (d) {$ $}
;}\newcommand{\nodee}{\node[draw,circle] (e) {$ $}
;}\newcommand{\nodef}{\node[draw,circle] (f) {$3$}
;}\newcommand{\nodeg}{\node[draw,circle] (g) {$ $}
;}\newcommand{\nodeh}{\node[draw,circle] (h) {$ $}
;}\newcommand{\nodei}{\node[draw,circle] (i) {$2$}
;}\newcommand{\nodej}{\node[draw,circle] (j) {$1$}
;}\newcommand{\nodeba}{\node[draw,circle] (ba) {$ $}
;}\newcommand{\nodebb}{\node[draw,circle] (bb) {$ $}
;}\begin{tikzpicture}[auto]
\matrix[column sep=.3cm, row sep=.3cm,ampersand replacement=\&]{
         \&         \&         \&         \& \nodea  \&         \&         \&         \&         \\ 
         \& \nodeb  \&         \& \nodee  \&         \&         \& \nodef  \&         \& \nodebb \\ 
 \nodec  \&         \& \noded  \&         \&         \& \nodeg  \& \nodeh  \& \nodei  \&         \\ 
         \&         \&         \&         \&         \&         \&         \& \nodej  \&         \\ 
         \&         \&         \&         \&         \&         \&         \& \nodeba \&         \\
};

\path[ultra thick, red] (b) edge (c) edge (d)
	(j) edge (ba)
	(i) edge (j)
	(f) edge (g) edge (h) edge (i)
	(a) edge (b) edge (e) edge (f) edge (bb);
\end{tikzpicture}}
