I am trying to draw a graph comprised of 13 triangles joined at the centre (i.e. a wheel graph with some edges missing from the outer cycle). I managed to connect the outer vertices to the central one but I would like to automate the insertion of the remaining edges. The vertices on the outer cycle are labelled from 1 to 26. For each odd vertex n, I want to draw an edge between this and vertex n+1, e.g. edges (1,2), (3,4), (5,6), etc. I tried the code below but I don't know how to "evaluate" the expression "\x + 1" to reference a vertex.
\begin{tikzpicture}[main/.style = {draw, circle, inner sep=1.2, fill=black}]
\node[main, label=below:{$e$}] at (360:0mm) (0) {};
\graph[circular placement, group polar shift=(360/26:0), empty nodes, radius=6cm, nodes={circle, inner sep=1.2, draw=black, fill=black}] {
\foreach \x in {1,...,26} {
\x -- (0);
};
\foreach \x in {1,3,5,7,9,11,13,15,17,19,21,23,25} {
\x -- \x + 1
};
};
\end{tikzpicture}
The result should look similar to the following but with all the missing edges on the outer cycle.
Any help is very much appreciated!
\foreach \x/\y in{1/2,3/4,5/6,…}
.