The following example should produce a graph with three nodes 1, 2,3 and
edges 1->2, 1->3, 3->2. However, the edge 1->2 is omitted in the output.
\documentclass[tikz]{standalone}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\node foreach \x in {1,2,3} (\x) at (120*\x:1) {\x};
\graph{(1) -> {(2), (3) -> (2)}};
\end{tikzpicture}
\end{document}
Are you sure that your syntax is right? Using
gives the desired result.
(Please note that I have never used the
graphslibrary. If you show me in the manual that your syntax is allowed or an example in the manual that uses your syntax I accept your bug report. Otherwise I'll close it as "invalid" (or similar).Are you sure that your syntax is right?
Yes. Please look at the following places in the manual:
Section 19.1 Overview [for specifying graphs]: the last example with edge
labels f, a, g.
Section 19.2.2: Concept: Chain Groups:
the very first example uses a -> {b -> c, d->e } -> f.
Section 19.7.3: This section discusses which nodes should be connected by a
specification like {a, b, c} -> {d, e->f}.
If these do not answer your concerns,
please point out the place where you think the syntax is wrong, because I
am only guessing it now.
Seems to be a problem with the parser. When you flip the order it works.
Bug confirmed.
That's more broken than I thought it was. Try this
\graph{(1) -> {(1), (2), (3)}};Diff: