Arrow bending in TikZ is not aligned

by larkee   Last Updated May 23, 2020 01:23 AM

I am using TikZ to draw a diagram. The bended arrows are not really correct mapped between the boxes.

\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning} 
\tikzset{
    %Define standard arrow tip
    >=stealth',
    %Define style for boxes
    punkt/.style={
           rectangle,
           rounded corners,
           draw=black, very thick,
           text width=6.5em,
           minimum height=2em,
           text centered},
    plain/.style={
           rectangle,
           rounded corners,
           draw=white, very thick,
           text width=6.5em,
           minimum height=2em,
           text centered},
    % Define arrow style
    pil/.style={
           ->,
           thick,
           shorten <=2pt,
           shorten >=2pt,}
}

\begin{document}
    \begin{tikzpicture}
     \node[punkt] (a) {AAAAA};

     \node[punkt, inner sep=5pt, right=0.5 of a] (b) {BBBBBB BBBBB}
       edge[pil,<-] (a.east);

     \node[plain, inner sep=5pt, right=0.5 of b] (dummy) {};
     \node[punkt, inner sep=5pt, above=0.5 of dummy] (b1) {BBBBBB BBBBB1}
       edge[pil, <-, bend right=45] (b.north);
     \node[punkt, inner sep=5pt, below=0.5 of dummy] (b2) {BBBBBB BBBBB2}
       edge[pil, <-, bend left=45] (b.south);

     \node[plain, inner sep=5pt, right=0.5 of dummy] (dummy2) {};
     \node[punkt, inner sep=5pt, above=0.5 of dummy2] (c1) {CCCCCC CCCC1}
       edge[pil,<-] (b1.east);
     \node[punkt, inner sep=5pt, below=0.5 of dummy2] (c2) {CCCCCC CCCC2}
       edge[pil,<-] (b2.east);

     \node[punkt, inner sep=5pt, right=0.5 of dummy2] (d) {DDDDDD DDDD}
       edge[pil, <- , bend right=45] (c1.east)
       edge[pil, <- , bend left=45] (c2.east);

    \end{tikzpicture}
\end{document}

This code generates following picture.

Generated diagram picture

Is there a way to make them prettier?



Related Questions


Combination of arrows with and without label

Updated August 31, 2016 08:09 AM

Draw circle with nodes and arrows on it

Updated November 19, 2018 16:23 PM

How do I attach arrows together?

Updated November 07, 2017 23:23 PM


Lower arrow within subscript

Updated October 29, 2018 22:23 PM