\usepackage{tikz-cd}

\newcommand{\graphScale}{2}
\newcommand{\horSep}{1*\graphScale}
\newcommand{\vertSep}{0.75*\graphScale}
\newcommand{\edgeText}{\small}
\newcommand{\nodeText}{\large}
\tikzstyle{bag} = [text width=1em, text centered]
\tikzstyle{end} = [] 

\newcommand{\graphFive}{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (b) at (\horSep,0) [bag] {\nodeText $b$};
  \draw [-] (a) to node [above] {\edgeText $0.464 $} (b);
 \end{tikzpicture}
}

\newcommand{\graphSix}{{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (b) at (2*\horSep,0) [bag] {\nodeText $b$};
  \node (c) at (\horSep,0) [bag] {\nodeText $c$};
  \draw [-] (a) to node [above] {\edgeText $ 0.739$} (c);
  \draw [-] (b) to node [above] {\edgeText $ 0.6$} (c);
 \end{tikzpicture}
}}

\newcommand{\graphSeven}{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (b) at (\horSep,0) [bag] {\nodeText $b$};
  \draw [-] (a) to node [above] {\edgeText $ 0.715$} (b);
 \end{tikzpicture}
}

\newcommand{\graphEight}{{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (b) at (1.5\horSep,0) [bag] {\nodeText $b$};
  \node (c) at (0.75\horSep,-0.9*\vertSep) [bag] {\nodeText $c$};
  \draw [-] (a) to node [above] {\edgeText $0.289$} (b);
  \draw [-] (a) to node [below] {\edgeText $0.758$} (c);
  \draw [-] (b) to node [below] {\edgeText $0.293$} (c);
 \end{tikzpicture}
}}

\newcommand{\graphNine}{{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (b) at (0,-\vertSep) [bag] {\nodeText $b$};
  \node (c) at (0,\vertSep) [bag] {\nodeText $c$};
  \node (d) at (\horSep,0) [bag] {\nodeText $d$};
  \node (e) at (-\horSep,0) [bag] {\nodeText $e$};
  \draw [-] (a) to node [above] {\edgeText $0.28$} (b);
  \draw [-] (a) to node [above] {\edgeText $0.28$} (c);
  \draw [-] (a) to node [above] {\edgeText $0.308$} (d);
  \draw [-] (a) to node [above] {\edgeText $0.898$} (e);
  \draw [-] (b) to[out=180,in=-180,distance=79] node [above] {\edgeText $0.925$} (c);
  \draw [-] (b) to node [below] {\edgeText $0.74$} (d);
  \draw [-] (b) to node [below] {\edgeText $0.928$} (e);
  \draw [-] (c) to node [above] {\edgeText $0.317$} (d);
  \draw [-] (c) to node [above] {\edgeText $0.928$} (e);
 \end{tikzpicture}
}}

\newcommand{\graphNineReduced}{{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (c) at (0,\vertSep) [bag] {\nodeText $b$};
  \node (d) at (\horSep,0) [bag] {\nodeText $c$};
  \node (e) at (-\horSep,0) [bag] {\nodeText $d$};
  \draw [-] (a) to node [above] {\edgeText $0.28$} (c);
  \draw [-] (a) to node [below] {\edgeText $0.308$} (d);
  \draw [-] (a) to node [below] {\edgeText $0.898$} (e);
  \draw [-] (c) to node [above] {\edgeText $0.317$} (d);
  \draw [-] (c) to node [above] {\edgeText $0.928$} (e);
 \end{tikzpicture}
}}


\newcommand{\graphNineFull}{{
\begin{tikzpicture}[sloped]
  \node (a) at (0,0) [bag] {\nodeText $a$};
  \node (b) at (0,-\vertSep) [bag] {\nodeText $b$};
  \node (c) at (0,\vertSep) [bag] {\nodeText $c$};
  \node (d) at (\horSep,0) [bag] {\nodeText $d$};
  \node (e) at (-\horSep,0) [bag] {\nodeText $e$};
  \node (f) at (1.6*\horSep,0) [bag] {\nodeText $f$};
  \node (g) at (-1.6*\horSep,0) [bag] {\nodeText $g$};
  \draw [-] (a) to node [above] {\edgeText $ $} (b);
  \draw [-] (a) to node [above] {\edgeText $ $} (c);
  \draw [-] (a) to node [above] {\edgeText $ $} (d);
  \draw [-] (a) to node [above] {\edgeText $ $} (e);
  \draw [-] (b) to node [below] {\edgeText $ $} (d);
  \draw [-] (c) to node [above] {\edgeText $ $} (d);
  \draw [dashed] (g) to node [above] {\edgeText $ $} (e);
  \draw [dashed] (c) to node [above] {\edgeText $ $} (g);
  \draw [dashed] (b) to node [above] {\edgeText  $ $} (g);
  \draw [dashed] (b) to node [above] {\edgeText $ $} (f);
  \draw [dashed] (c) to node [above] {\edgeText $ $} (f);
 \end{tikzpicture}
}}

\newcommand{\graphTen}{{
\begin{tikzpicture}[sloped]
  \node (a) at (-\horSep,0) [bag] {\nodeText $a$};
  \node (b) at (\horSep,0) [bag] {\nodeText $b$};
  \node (c) at (\horSep,\vertSep) [bag] {\nodeText $c$};
  \node (d) at (0,\vertSep) [bag] {\nodeText $d$};
   \node (e) at (\horSep+\horSep,\vertSep) [bag] {\nodeText $e$};
   \node (f) at (-\horSep,\vertSep) [bag] {\nodeText $f$};
   \node (g) at (0,0) [bag] {\nodeText $g$};
   \node (h) at (\horSep,\vertSep+\vertSep) [bag] {\nodeText $h$};
  \draw [-] (a) to node [below] {\edgeText $0.754$} (g);
  \draw [-] (g) to node [below] {\edgeText $0.897$} (b);
  \draw [-] (b) to node [below] {\edgeText $0.292$} (d);
  \draw [-] (b) to node [below] {\edgeText $0.997$} (e);
  \draw [-] (c) to node [above] {\edgeText $0.774$} (e);
  \draw [-] (c) to node [above] {\edgeText $0.236$} (d);
  \draw [-] (d) to node [above] {\edgeText $0.290$} (f);
  \draw [-] (d) to node [above] {\edgeText $1.167$} (h);
  \draw [-] (e) to node [above] {\edgeText $0.927$} (h);
 \end{tikzpicture}
}}

\newcommand{\graphTenFull}{{
\begin{tikzpicture}[sloped]
  \node (a) at (-\horSep,0) [bag] {\nodeText $a$};
  \node (b) at (\horSep,0) [bag] {\nodeText $b$};
  \node (c) at (\horSep,\vertSep) [bag] {\nodeText $c$};
  \node (d) at (0,\vertSep) [bag] {\nodeText $d$};
   \node (e) at (\horSep+\horSep,\vertSep) [bag] {\nodeText $e$};
   \node (f) at (-\horSep,\vertSep) [bag] {\nodeText $f$};
   \node (g) at (0,-\vertSep) [bag] {\nodeText $g$};
   \node (h) at (\horSep,\vertSep+\vertSep) [bag] {\nodeText $h$};
   \node (i) at (0,0) [bag] {\nodeText $i$};
  \draw [-] (a) to node [below] {\edgeText $0.754$} (g);
  \draw [-] (g) to node [below] {\edgeText $0.897$} (b);
  \draw [-] (b) to node [below] {\edgeText $0.292$} (d);
  \draw [-] (b) to node [below] {\edgeText $0.997$} (e);
  \draw [-] (c) to node [above] {\edgeText $0.774$} (e);
  \draw [-] (c) to node [above] {\edgeText $0.236$} (d);
  \draw [-] (d) to node [above] {\edgeText $0.290$} (f);
  \draw [-] (d) to node [above] {\edgeText $1.167$} (h);
  \draw [-] (e) to node [above] {\edgeText $0.927$} (h);
 \end{tikzpicture}
}}