I am using the excellent tikz-network package written by Jürgen Hackl. I am trying to change shape of some nodes to be an ellipse, but I can't figure out how to. From the manual, tikz-network:
With the option shape the shape of the vertex can be modified. Thereby the shapes implemented in TikZ can be used, including: circle, rectangle, diamond, trapezium, semicircle, isosceles triangle, ...
But when I compile this code:
\documentclass{article}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\Vertex[color=white, x=-1, y=1, label=A]{A}
\Vertex[color=white, x=1, y=1, label=B, shape=rectangle]{B}
\Vertex[color=white, x=0, y=0, label=2, shape=ellipse]{2}
\Edge[lw=1, Direct](A)(2)
\Edge[lw=1, Direct](B)(2)
\end{tikzpicture}
\end{document}
all I get is this
while I would expect the shape of node 2 to be an ellipse, not a circle.