Consider following graph
%! TEX program = lualatex
\documentclass{article}
\usepackage{tikz}
\usepackage[graphics, active, tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\usetikzlibrary{graphs,graphdrawing}
\usegdlibrary{trees, layered, circular, routing}
\begin{document}
\begin{tikzpicture}
\graph [layered layout, head anchor=north, tail anchor=south] {
{ [edge={draw=none}] 12 -> 6 -> 4 -> 3 -> 2};
{ [same layer] 12, a/17 },
{ [same layer] 6, b/16,c/14,d/15 },
{ [same layer] 4, e/9 },
{ [same layer] 3, f/13 },
{ [same layer] 2, g/2, h/5 },
a --[bend right=0] { b --[bend right=0] {f[nudge right=7mm],g[nudge right=1.5mm]}, c --[bend right=0] f, c--[bend right=0] h, d --[bend right=0] {f,h}, e[nudge right=25mm] --[bend right=0] {g,h}};
};
% ADD MANUALLY PARALLEL EDGE:
\draw ([xshift=2pt]e.south) -- ([xshift=2pt]h.north);
\end{tikzpicture}
\end{document}
I have attached to all visible edges the property bend right=0.
I want to avoid to set this for each edge individually but adjust it for all edges of this graph.
How can I do this?
see also related question: Why is this edge not straight when using subgraphs in layered layout?

