I am generating a tikz necklace graph and I want to label the edges, and for the life of me I can't figure out how from the manual.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{graphs, graphdrawing}
\usegdlibrary{circular}
\begin{document}
\begin{tikzpicture}
[baseline=-6mm,
field/.style={font=\footnotesize,circle,fill=black, minimum size=4mm, inner sep=0mm},
wall/.style={font=\footnotesize,circle,draw=black, fill=white, minimum size=4mm, inner sep=0mm}]
\graph [simple necklace layout, node sep=2mm, node distance=0mm, nodes={field,as=},horizontal=C to B] {
A[wall, label=above:1] -- B[label=below:2] -- C[label=below:3] -- A,
C -- D[label=above:4],
};
\end{tikzpicture}
\end{document}
I would like for the labels to appear next to the edge on the outside of the graph. Any suggestions would be greatly appreciated.

