I am tryng to draw the following figure that represent a bipartite graph: Follow the code that I did:
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
node distance = 7mm and 21mm,
start chain = going below,
U/.style = {circle, draw, fill=#1,
inner sep=0pt, minimum size=3mm,
node contents={}},
V/.style = {U, on chain},
every edge/.style = {decoration={markings,
mark=at position .5 with {\arrow{Straight Barb}}},
draw, postaction={decorate}
},
]
% vertices
\foreach \i [count=\j from 0] in {1,2,3}%
{
\node (n1\j) [V,label=left:{$y_{\i}$}];
\node (n2\j) [U,above right=of n1\j, label=right:{$z_{\j}$}];
}
\node (n23) [U,right=of n12, label=right:{$z_{3}$}];
\node (n13) [on chain] {$\vdots$};
\node (n24) [right=of n13] {$\vdots$};
\node (n14) [V,label=left:{$y_{t}$}];
\node (n25) [U,right=of n14, label=right:{$z_{t}$}];
% Set I
\node [fit=(n10) (n13),label=above:$I-J$] {};
% Set S-I
\node [fit=(n20) (n23),label=above:$J-I$] {};
% connections
\foreach \i [count=\j from 0] in {1,2,3}%
{
\draw
(n1\j) edge (n2\i);
}
\draw (n14) edge (n25);
\end{tikzpicture}
\end{document}