Example of permutation network

RAW | PDF

% Title    : Example of permutation network
% Author   : George Ungureanu
% Category : tikz
\documentclass{standalone}
\usepackage{forsyde-tikz}
\begin{document}
\begin{tikzpicture}[]
  \node[ports e8w8, inner ysep=18pt] (inside) at (2,0) {};
  \cluster[shape=trans shape v1v1,inner sep=2pt]<(inside)>{};
  \drawconduit{inside}{8}{8};
  \foreach \i in {1,3,...,8} {\draw[very thin, ->] (inside.w\i) -- (inside.e\i);}
\end{tikzpicture}
\end{document}