I wish to draw the graph. But its vertices are very thick. How I can to decrease the size of vertices?
Follow the code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,chains,fit,shapes,calc}
\begin{document}
\begin{tikzpicture} [every node/.style={draw,circle},
every fit/.style={ellipse,draw,inner sep=-2pt,text width=1.5cm},
shorten >= 3pt,shorten <= 3pt]
% the vertices of U_2
\begin{scope}[start chain=going below, node distance=4mm]
\foreach \i in {1,2,...,3}
\node[
fill=black,
on chain] (f\i) [label=left: \i] {};
\end{scope}
% the vertices of U_2
\begin{scope}[xshift=4cm,yshift=-0.5cm,start chain=going below,node distance=5mm]
\foreach \i in {4,5}
\node
[
fill=black,
on chain]
(s\i) [label=right: \i] {};
\end{scope}
% the set U_1
\node [fit=(f1) (f3),label=above:$U_1$] {};
% the set U_2
\node [fit=(s4) (s5),label=above:$U_2$] {};
% the edges
\draw[red] (f1) -- (s4);
\draw (f1) -- (s5);
\draw (f3) -- (s4);
\draw[red] (f3) -- (s5);
\end{tikzpicture}
\end{document}
Follow the generated figure:
vertices are very thick
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. This is especially important fortikz
as there are numerous libraries.