% !TEX root = ../paper.tex
\psset{unit=0.7cm}
%
\pspicture(0,-1.5)(10,3)
% \showgrid
% Domain and Image
\psset{linecolor=lightgray,framearc=0.3,fillstyle=solid,fillcolor=lightgray}
\psframe(0.3,1.7)(9.7,2.3)
\psframe(0.3,-0.3)(9.7,0.3)
% The vertices
\psset{fillcolor=white,linecolor=black,linewidth=0.01}
\multido{\nx=1+1}{9}{
	\pscircle(\nx,0){0.25}
	\pscircle(\nx,2){0.25}
	\rput(\nx,-0.5){$\scriptstyle\nx$}
	\rput(\nx,2.5){$\scriptstyle\nx$}
}
% The green vertices
\psset{fillcolor=green}
% Lower
\pscircle(2,0){0.25}
\pscircle(4,0){0.25}
\pscircle(5,0){0.25}
\pscircle(7,0){0.25}
\pscircle(8,0){0.25}
% Upper
\pscircle(2,2){0.25}
\pscircle(5,2){0.25}
\pscircle(6,2){0.25}
\pscircle(7,2){0.25}
\pscircle(9,2){0.25}
% The red vertices
\psset{fillcolor=red}
% Lower
\pscircle(1,0){0.25}
\pscircle(3,0){0.25}
\pscircle(6,0){0.25}
\pscircle(9,0){0.25}
% Upper
\pscircle(1,2){0.25}
\pscircle(3,2){0.25}
\pscircle(4,2){0.25}
\pscircle(8,2){0.25}
% The green edges
\psset{linewidth=0.1,linecolor=green}
\psline{c-c}(2,0)(5,2)
\psline{c-c}(5,0)(7,2)
\psline{c-c}(7,0)(6,2)
\psline{c-c}(8,0)(9,2)
\psline{c-c}(4,0)(2,2)
% The red edges
\psset{linecolor=red,linestyle=dotted}
\psline{c-c}(1,0)(3,2)
\psline{c-c}(3,0)(1,2)
\psline{c-c}(6,0)(4,2)
\psline{c-c}(9,0)(8,2)
% The red inner crossings
\psset{linestyle=solid,linewidth=0.05,linecolor=black,fillstyle=solid,fillcolor=black}
\pscircle(2,1){0.15}
% The green inner crossings
\psset{fillcolor=black}
\pscircle(3.2, 0.8){0.15}
\pscircle(6.33333, 1.33333){0.15}
% The outer crossings
\psset{fillcolor=white}
\pscircle(4.4, 1.6){0.15}
\pscircle(5.5, 0.5){0.15}
\pscircle(8.5, 1){0.15}
% The permutation
%\psline[linewidth=0.25,linecolor=lightgray]{->}(-1.5,0.55)(-1.5,1.6)
%\rput[B](-2.2,1){$\mathbf\pi$}
% The labels
%\rput(4,-0.81){$\underbrace{\strut\hskip4.5cm\strut\relax}_{l=3}$}
% End of picture
\endpspicture
\endinput
