Sorry for the poor title. I'm working with tikz on a graph, which I began with a circle, and I have two problems:
- The labels on the edges don't seem to be center on the edges. They all seem nearer v3 and v5 than they should.
- I can align v1 left of v4, but v6 is not "right" of v2, is below. Why is that? Why can't it be just right of v2, as v4 is left of v6?
My code:
\documentclass[10pt,a4paper,twoside]{report}
%---------------------------------- tikz ---------------------------------------
\usepackage{tikz}
\usetikzlibrary{positioning,chains,fit,shapes,calc,arrows,patterns,external,shapes.callouts,graphs}
\begin{document}
\begin{tikzpicture} [node distance=3cm,]
\graph [clockwise=4,radius=1.5cm] {
v2/$v_2$ ,
v3/$v_3$,
v4/$v_4$,
v5/$v_5$,
};
\graph {
v1/$v_1$ [left of=v4],
v6/$v_6$ [right of=v2],
};
\graph {
(v5) -> [sloped,edge label=$-4$] (v2) ->[sloped,edge label=$2$] (v3) ->[sloped,edge label=$-5$] (v4) -> [sloped,edge label=$1$] (v5),
};
\end{tikzpicture}
\end{document}


sloped. – Gonzalo Medina Oct 14 '15 at 00:16