I am using the TikZ force directed graph library, and would like to draw a filled-in triangle between three graph nodes. I would have thought this would do it, but it only draws the triangle boundary without any fill:
\usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees}
\begin{tikzpicture}
\graph [tree layout, nodes={draw}]
{ a -- b,
b -- c,
c -- a,
c -- d};
\path[red,draw,fill=green] (a) -- (b) -- (d) -- (a);
\end{tikzpicture}
Does anyone know what I'm missing here? Thanks in advance for your help!