I'm trying to code a star graph, using the tikz graphs
library. This is what I have so far:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
\graph [clockwise=10, radius=1cm] {
hidden -> \foreach \i in {1,...,10} {p\i/$P_{\i}$}};
\end{tikzpicture}
\end{document}
Why is the root node not centered? Shouldn't everything be nicely disposed around (0, 0)?