\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{tikz}
\tikzstyle{vertex}=[auto=left,circle,fill=black!25,minimum size=20pt,inner sep=0pt]
\begin{document}
\begin{tikzpicture}
\node[vertex] (n1) at (1,4) {s};
\node[vertex] (n2) at (3,2) {};
\node[vertex] (n3) at (3,3) {};
\node[vertex] (n4) at (3,4) {};
\node[vertex] (n5) at (3,6) {};
\node[vertex] (n6) at (9,4) {t};
\node[vertex] (n7) at (7,6) {};
\node[vertex] (n8) at (7,4) {};
\node[vertex] (n9) at (7,3) {};
\node[vertex] (n10) at (7,2) {};
\foreach \from/\to in {n1/n2,n1/n3,n1/n4,n1/n5,
n6/n7,n6/n8,n6/n9,n6/n10}
\draw[densely dotted] (\from) -- (\to);
\foreach \from/\to in {n2/n10,n3/n9,n4/n8,n5/n7}
\draw(\from) -- (\to);
\end{tikzpicture}
\end{document}
I am trying to get vertical dots between nodes (n4,n5) and (n6,n7). I have tried many ways but nonetheless.
Also I am trying t add edge weights to the graph. I keep finding links to those written in the form of a matrix.
I need to add text representing the left and right nodes on the tree. How do we add text at desired place in the tree?
