# Using shadows in TikZ 3.0 graphs

I have problems using the new graph drawing features in TikZ 3.0 with shadows.

\documentclass{scrartcl}

\usepackage{tikz}
\usegdlibrary{force}
\tikzstyle{vertex}=[draw, circle, fill=white, circular drop shadow]
\tikzstyle{edge}=[draw,thick]

\begin{document}
\tikz
\graph[spring layout, horizontal=a to b] {
a[vertex] --[edge] b[vertex];
};
\tikz
\graph {
a[vertex] --[edge] b[vertex];
};
\end{document}


When using spring layout (I assume that this problem occurs with all layout algorithms) edges are behind the shadows. Without a layout algorithm the edges are above the shadows of vertices.

How can this be solved, so that edges are always above the shadow?

-
Use the nodes behind edges option (p. 395, pgfmanual v3.0.0). – Paul Gaborit Jan 11 '14 at 0:33
That works, thanks a lot. – Christoph Weyer Jan 13 '14 at 10:49
@PaulGaborit please convert your comment to an answer so we can move this to the answered realm. :) – Paul Gessler Feb 24 '14 at 3:08

You may use the nodes behind edges option (p. 395, pgfmanual v3.0.0).

\documentclass[margin=1mm]{standalone}
\usepackage{tikz}