% pdflatex example.tex
% pdf2svg example.pdf ../files/example.svg

\documentclass[preview,margin=2mm,varwidth,crop]{standalone}
\usepackage{tikz}
\usetikzlibrary {graphs, graphs.standard}

\begin{document}

\begin{tikzpicture}
\graph [simple] {
    subgraph K_n [n=5, clockwise, nodes={draw,circle}, radius=12mm];
    { [edges={red,ultra thick}]
        1 -> 2 -> 3 -> 4 -> 5 -> 1
    };
    1 -> {3, 4};
    2 -> 5;
    4 -> 2;
    5 -> 3
};
\end{tikzpicture}
\hspace{10mm}
\begin{tikzpicture}
\graph [simple] {
    subgraph K_n [n=5, clockwise, nodes={draw,circle}, radius=12mm, V={2,4,1,5,3}];
    { [edges={red,ultra thick}]
        1 -> 5 -> 4 -> 3 -> 2 -> 1
    };
    2 -> {4, 5};
    4 -> 1;
    5 -> 3;
    3 -> 1
};
\end{tikzpicture}

\end{document}
