Can anyone help me to write the code to have the same graph as in the image below?
\begin{tikzpicture}
\matrix[column sep=2em, row sep=10ex, inner sep=0pt, minimum width=6pt] (M) {%
\node[mypoint, label={[left,xshift=-4pt]V1}, fill=green] (V1) {}; & & & & & \node[mypoint, label={above:$V_{2}$}] (V2) {};\\
\node[mypoint, label={[left,xshift=-4pt]V5}] (V5) {}; & & & & &
\node[mypoint, label={below left:V4}] (V4) {}; & & & & &
\node[mypoint, label={[right,xshift=2pt]V3}] (V3) {};\\
};
\draw (V1) -- (V2);
\draw (V5) -- (V1);
\draw (V5) -- (V4);
\end{tikzpicture}
Best Answer