\documentclass[12pt]{article}

\usepackage{tikz}
\usepackage{pgf}
\usepackage[active,pdftex,tightpage]{preview}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{arrows}
\usetikzlibrary{patterns}
\usetikzlibrary{fadings}
\usetikzlibrary{shapes,snakes}
\usetikzlibrary{decorations.markings}
\PreviewEnvironment[]{tikzpicture}
\PreviewEnvironment[]{pgfpicture}
\begin{document}





\tikzset{
vtx/.style={inner sep=1.8pt, outer sep=0pt, circle,fill=black,draw}, 
edge_r/.style={red,line width=1.8pt,dotted}, 
edge_b/.style={blue,line width=1.8pt}, 
edge_g/.style={green,line width=1.8pt, decorate,decoration={bumps,mirror}	}, 
edge_y/.style={yellow,line width=1.8pt,decoration=zigzag,decorate}, 
edge_p/.style={pink,line width=1.8pt,decorate,decoration={coil,segment length=4pt}}, 
}


%%%%%%%%%%%%%%%%%%% 


%%%%%%%%%%%%%%%%%%% 
\newcommand{\thetabaseXZ}[2]{
\draw
(0,0) coordinate(a) 
(5,0) coordinate(b)
(a) node[vtx](x0){}
(a) node[vtx](y0){}
(a) node[vtx](z0){}
;
\draw (b) node[vtx](xb){};
\draw (b) node[vtx](zb){};
\draw (b) node[vtx](yb){};

\foreach \x in {1,...,#1}{
\pgfmathsetmacro{\xpos}{\x / (#1+1)}
\path (a) to[bend left=70,looseness=1.2] node[vtx,pos=\xpos](x\x){} (b);
\path (x\x) ++(0,0.7) node[vtx](xx\x){};
}



\foreach \x in {1,...,#2}{
\pgfmathsetmacro{\xpos}{\x / (#2+1)}
\path (a) to[bend right=70] node[vtx,pos=\xpos](z\x){} (b);
\path (z\x) ++(0,-0.7) node[vtx](zz\x){};
}

}


\newcommand{\thetacaption}[3]{
\draw(2.5,-2.8) node{$\Theta(#2,#1,#3)$};
}

\newcommand{\thetabaseXYZ}[3]{
\thetabaseXZ{#1}{#3}

\foreach \x in {1,...,#2}{
\pgfmathsetmacro{\xpos}{\x / (#2+1)}
\path (a) to[bend left=0] node[vtx,pos=\xpos](y\x){} (b);
\path (y\x) ++(0,0.7) node[vtx](yy\x){};
}

\thetacaption{#1}{#2}{#3}
}



\newcommand{\colorOne}[3]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#1b);
}

\newcommand{\colorOneUp}[2]{
\draw[edge_#2] (#11) -- (#1#11);
}


\newcommand{\colorTwo}[4]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#12);
\draw[edge_#4] (#12) -- (#1b);
}

\newcommand{\colorTwoUp}[3]{
\draw[edge_#2] (#11) -- (#1#11);
\draw[edge_#3] (#12) -- (#1#12);
}

\newcommand{\colorThree}[5]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#12);
\draw[edge_#4] (#12) -- (#13);
\draw[edge_#5] (#13) -- (#1b);
}

\newcommand{\colorThreeUp}[4]{
\draw[edge_#2] (#11) -- (#1#11);
\draw[edge_#3] (#12) -- (#1#12);
\draw[edge_#4] (#13) -- (#1#13);
}

\newcommand{\colorFour}[6]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#12);
\draw[edge_#4] (#12) -- (#13);
\draw[edge_#5] (#13) -- (#14);
\draw[edge_#6] (#14) -- (#1b);
}

\newcommand{\colorFourUp}[5]{
\draw[edge_#2] (#11) -- (#1#11);
\draw[edge_#3] (#12) -- (#1#12);
\draw[edge_#4] (#13) -- (#1#13);
\draw[edge_#5] (#14) -- (#1#14);
}


\newcommand{\colorFive}[7]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#12);
\draw[edge_#4] (#12) -- (#13);
\draw[edge_#5] (#13) -- (#14);
\draw[edge_#6] (#14) -- (#15);
\draw[edge_#7] (#15) -- (#1b);
}

\newcommand{\colorFiveUp}[6]{
\draw[edge_#2] (#11) -- (#1#11);
\draw[edge_#3] (#12) -- (#1#12);
\draw[edge_#4] (#13) -- (#1#13);
\draw[edge_#5] (#14) -- (#1#14);
\draw[edge_#6] (#15) -- (#1#15);
}



\newcommand{\colorSix}[8]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#12);
\draw[edge_#4] (#12) -- (#13);
\draw[edge_#5] (#13) -- (#14);
\draw[edge_#6] (#14) -- (#15);
\draw[edge_#7] (#15) -- (#16);
\draw[edge_#8] (#16) -- (#1b);
}

\newcommand{\colorSixUp}[7]{
\draw[edge_#2] (#11) -- (#1#11);
\draw[edge_#3] (#12) -- (#1#12);
\draw[edge_#4] (#13) -- (#1#13);
\draw[edge_#5] (#14) -- (#1#14);
\draw[edge_#6] (#15) -- (#1#15);
\draw[edge_#7] (#16) -- (#1#16);
}


\newcommand{\colorSeven}[9]{
\draw[edge_#2] (#10) -- (#11);
\draw[edge_#3] (#11) -- (#12);
\draw[edge_#4] (#12) -- (#13);
\draw[edge_#5] (#13) -- (#14);
\draw[edge_#6] (#14) -- (#15);
\draw[edge_#7] (#15) -- (#16);
\draw[edge_#8] (#16) -- (#17);
\draw[edge_#9] (#17) -- (#1b);
}

\newcommand{\colorSevenUp}[8]{
\draw[edge_#2] (#11) -- (#1#11);
\draw[edge_#3] (#12) -- (#1#12);
\draw[edge_#4] (#13) -- (#1#13);
\draw[edge_#5] (#14) -- (#1#14);
\draw[edge_#6] (#15) -- (#1#15);
\draw[edge_#7] (#16) -- (#1#16);
\draw[edge_#8] (#17) -- (#1#17);
}

\begin{tikzpicture}[scale=1]
\thetabaseXZ77
\thetacaption707

\colorSeven{x}yprygryb
\colorSevenUp{x}bgbpbpg

\colorSeven{z}gbrgyrgp
\colorSevenUp{z}pypbpby

\draw[edge_r] (y0) -- (yb);


\end{tikzpicture}


\begin{tikzpicture}[scale=1]
\thetabaseXZ76
\thetacaption607

\colorSeven{x}byrgyrpy
\colorSevenUp{x}gpbpbgb

\colorSix{z}pgbprbg
\colorSixUp{z}yrygyp

\draw[edge_r] (y0) -- (yb);
\end{tikzpicture}





\begin{tikzpicture}[scale=1]
\thetabaseXYZ616

\colorSix{x}rpbrybr
\colorSixUp{x}gygpgp

\colorOne{y}bg
\colorOneUp{y}p

\colorSix{z}ygrygpy
\colorSixUp{z}pbpbrb
\end{tikzpicture}



\begin{tikzpicture}[scale=1]
\thetabaseXYZ517

\colorFive{x}rbyrgy
\colorFiveUp{x}pgpbp

\colorOne{y}gb
\colorOneUp{y}p

\colorSeven{z}yprbpygr
\colorSevenUp{z}bgygrbp

\end{tikzpicture}


\begin{tikzpicture}[scale=1]
\thetabaseXYZ526

\colorFive{x}pbrybr
\colorFiveUp{x}ygpgp

\colorTwo{y}rbg
\colorTwoUp{y}yp

\colorSix{z}gypbrpy
\colorSixUp{z}brgygb

\end{tikzpicture}



\begin{tikzpicture}[scale=1]
\thetabaseXYZ427

\colorFour{x}grybr
\colorFourUp{x}bpgp

\colorTwo{y}ybg
\colorTwoUp{y}rb

\colorSeven{z}prgbygby
\colorSevenUp{z}byprprp

\end{tikzpicture}


\begin{tikzpicture}[scale=1]
\thetabaseXYZ337

\colorThree{x}gbyg
\colorThreeUp{x}prp

\colorThree{y}rbyr
\colorThreeUp{y}pgp

\colorSeven{z}ybrybryb
\colorSevenUp{z}pgpgpgp

\end{tikzpicture}



\end{document}



