\begin{minipage}{0.45\textwidth}
	\centering
	\begin{tikzpicture}[scale=0.6]
		%Weights
		\path[fill=gray!20] (1,0) rectangle (3,1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (1,0) rectangle (3,1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (3,0) rectangle (5,-1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (3,0) rectangle (5,-1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (4,-1) rectangle (5,-2) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (4,-1) rectangle (5,-2) node[pos=.5, color=black] {};
		\draw[->,>=latex] (0,-3.5) -- (0,6.5);
		\draw[->,>=latex] (-0.5,0) -- (6.5,0);		
		\draw[color=myblue, line width=2pt] (0,0) -- (1,0) -- (1,1) -- (2,1) -- (2.95,1) -- (2.95,2) -- (2.95,3);
		\draw[color=myred, line width=2pt] (3.05,3) -- (3.05,2) -- (3.05,1) -- (3.05,0) -- (3.05,-1) -- (4,-1) -- (4,-2) -- (5,-2) -- (5,-3);
		\draw[color=myblue!30,line width=2pt] (2,1) -- node[above, color=myblue!80] {\footnotesize $e_1$} (3,1) ;
		\draw[color=myred!30,line width=2pt] (3,-1) -- node[below, color=myred!80] {\footnotesize $e_2$} (4,-1) ;
		\foreach \x in {0,...,6}
		\foreach \y in {-3,...,6}
		{\draw[fill=black](\x,\y)circle(2pt);}
		\node[above left=-0.1, color=black] at (0,0) {\footnotesize $(0,0)$};
		\node[below right=-0.1, color=black] at (5,-3) {\footnotesize $(k,n+m-k)$};
		\node[above left=-0.1, color=black] at (0,6) {\footnotesize $(0,n)$};
		\node[below right=-0.1, color=black] at (5,1) {\footnotesize $(k,n-k)$};
		\node[above right=-0.1, color=black] at (3,3) {\footnotesize \color{black} $(j,n-j)$};
		\node[color=myblue] at (0.5,0.5) {\footnotesize $P_1$};
		\node[color=myred] at (5.5,-2.5) {\footnotesize $P_2$};
		\draw[fill=black,color=black](0,0)circle(4pt);
		\draw[fill=black,color=black](5,-3)circle(4pt);
		\draw[fill=black,color=black](0,6)circle(4pt);
		\draw[fill=black,color=black](5,1)circle(4pt);
		\draw (0,6) -- (5,1);
		\draw[fill=myblue,color=black](3,3)circle(4pt);
	\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}{0.03\textwidth} \centering
	$\leftrightarrow$
\end{minipage}
\hfill
\begin{minipage}{0.45\textwidth}\centering
	\begin{tikzpicture}[scale=0.6]
		%Weights
		\path[fill=gray!20] (1,0) rectangle (3,1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (1,0) rectangle (3,1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (3,0) rectangle (5,-1) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (3,0) rectangle (5,-1) node[pos=.5, color=black] {};
		\path[fill=gray!20] (4,-1) rectangle (5,-2) node[pos=.5, color=black] {};
		\path[pattern=north east lines, pattern color=gray!40] (4,-1) rectangle (5,-2) node[pos=.5, color=black] {};	
		\draw[->,>=latex] (0,-3.5) -- (0,6.5);
		\draw[->,>=latex] (-0.5,0) -- (6.5,0);	
		\draw[color=myblue, line width=2pt] (0,0) -- (1,0) -- (1,1) -- (1.95,1) -- (1.95,4);
		\draw[color=myred, line width=2pt] (2.05,4) -- (2.05,1) -- (3,1) -- (3,0) -- (3,-1) -- (4,-1) -- (4,-2) -- (5,-2) -- (5,-3);
		\draw[color=myblue!30,line width=2pt] (1,1) -- node[above, color=myblue!80] {\footnotesize $e_1'$} (2,1) ;
		\draw[color=myred!30,line width=2pt] (2,1) -- node[above, color=myred!80] {\footnotesize $e_2'$} (3,1) ;
		\foreach \x in {0,...,6}
		\foreach \y in {-3,...,6}
		{\draw[fill=black](\x,\y)circle(2pt);}
		\node[above left=-0.1, color=black] at (0,0) {\footnotesize $(0,0)$};
		\node[below right=-0.1, color=black] at (5,-3) {\footnotesize $(k,n+m-k)$};
		\node[above left=-0.1, color=black] at (0,6) {\footnotesize $(0,n)$};
		\node[below right=-0.1, color=black] at (5,1) {\footnotesize $(k,n-k)$};
		\node[above right=-0.1, color=black] at (2,4) {\footnotesize \color{black} $(j-1,n-j+1)$};
		\node[color=myblue] at (0.5,0.5) {\footnotesize $P_1'$};
		\node[color=myred] at (5.5,-2.5) {\footnotesize $P_2'$};
		\draw[fill=black,color=black](0,0)circle(4pt);
		\draw[fill=black,color=black](5,-3)circle(4pt);
		\draw[fill=black,color=black](0,6)circle(4pt);
		\draw[fill=black,color=black](5,1)circle(4pt);
		\draw (0,6) -- (5,1);
		\draw[fill=myblue,color=black](2,4)circle(4pt);
	\end{tikzpicture}
\end{minipage}