\documentclass{standalone}
\usepackage[paperwidth=\maxdimen,paperheight=\maxdimen]{geometry}
\usepackage{pgf,tikz}
\begin{document}

\begin{tikzpicture}[x=24pt, y=24pt, draw=white, double=black, line width=2.1pt]
	\node (4) at (0, 0) {$4$};
	\node (5) at (6, 0) {$5$};
	\node (3) at (7, 0) {$3$};
	\node (1) at (17, 0) {$1$};
	\node (2) at (27, 0) {$2$};
	\node (6) at (32, 0) {$6$};

	\draw[double=white,draw=green] (6) -- (32, -6) -- (21, -6) -- (21, 4) -- (13, 4) -- (13, -15) -- (41, -15) -- (41, 14) -- (1, 14) -- (1, -5) -- (11, -5) -- (11, 6) -- (23, 6) -- (23, -3) -- (30, -3) -- (30, 2) -- (34, 2) -- (34, -8) -- (19, -8) -- (19, 2) -- (15, 2) -- (15, -13) -- (39, -13) -- (39, 12) -- (3, 12) -- (3, -3) -- (9, -3) -- (9, 8) -- (25, 8) -- (25, -1) -- (28, -1) -- (28, 5) -- (36, 5) -- (36, -10) -- (17, -10) -- (1);
	\draw[double=white,draw=blue] (4) -- (0, -6) -- (12, -6) -- (12, 5) -- (22, 5) -- (22, -4) -- (31, -4) -- (31, 1) -- (33, 1) -- (33, -7) -- (20, -7) -- (20, 3) -- (14, 3) -- (14, -14) -- (40, -14) -- (40, 13) -- (2, 13) -- (2, -4) -- (10, -4) -- (10, 7) -- (24, 7) -- (24, -2) -- (29, -2) -- (29, 4) -- (35, 4) -- (35, -9) -- (18, -9) -- (18, 1) -- (16, 1) -- (16, -12) -- (38, -12) -- (38, 11) -- (4, 11) -- (4, -2) -- (8, -2) -- (8, 1) -- (6, 1) -- (5);
	\draw[double=white,draw=red] (2) -- (27, 10) -- (5, 10) -- (5, -1) -- (7, -1) -- (3);
	\draw[double=green] (5) -- (6, -11) -- (26, -11) -- (26, 3) -- (32, 3) -- (6);
	\draw[double=blue] (3) -- (7, 2) -- (0, 2) -- (4);
	\draw[double=red] (1) -- (17, 9) -- (37, 9) -- (37, -5) -- (27, -5) -- (2);
\end{tikzpicture}
\end{document}