I'm trying to draw a circle with tikz.
I've tried to adapt this example: http://www.texample.net/tikz/examples/cycle/
My circle should satisfy the following properties:
(1) There should be, for a fixed
$n$
, $n$
invisible vertices (with equal distance) on the circle line. Moreover, these vertices should be numbered from $1$
up to $n$
(but the numbers should not be on the circle line, but a little outside.(2) Some pairs of vertices should be connected. These connecting edges should be within the circle.
So far I have got this far:
Code: Select all
\documentclass[12pt,a4paper]{scrartcl}
\usepackage{tikz}
\begin{document}\begin{tikzpicture}
\def \n {5}
\def \radius {1cm}
\foreach \s in {1,...,\n}
{
\node at ({360/\n * (\s - 1)}:\radius) {$\s$} ;
\draw[-, >=latex] ({360/\n * (\s - 1)}:\radius)
arc ({360/\n * (\s - 1)}:{360/\n * (\s)}:\radius);
}
\foreach \from/\to in {1/2,3/5}
\draw ({360/\n * (\from - 1)}:\radius) -- ({360/\n * (\to - 1)}:\radius);
\end{tikzpicture}
\end{document}
(1) The numbers 1,...,5 are on the circle line, not outside. This looks not good in my opinion. Is there a way to change that?
(2) If I increase
$n$
to, say, 15, and two consecutive numbers (like 1 and 2 in my example) are connected, then you can't see the connecting vertex that well. Therefore, I would like to connect consecutive vertices not with a straight line, but with a "more round line" that goes a little bit into the circle. I hope it's understandable what I mean by that.Thanks in advance!