\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 (2) at (0, 0) {$2$};
	\node (3) at (5, 0) {$3$};
	\node (4) at (9, 0) {$4$};
	\node (6) at (22, 0) {$6$};
	\node (5) at (26, 0) {$5$};
	\node (1) at (37, 0) {$1$};

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