流程图中的 Latex TikZ 箭头定位

流程图中的 Latex TikZ 箭头定位

我想通过定位从我的决策节点(Terminer?)到第三个节点(Evalution)的箭头使我的流程图看起来更好。

谢谢你!

在此处输入图片描述

这是我的代码:

\begin{figure}[H]
    \centering
    \begin{tikzpicture}[node distance=2cm]
        \node (start) [startstop] {Démarrer};
        \node (pro1) [process, below of=start] {Population initiale};
        \node (pro2) [process, below of=pro1] {Evaluation};
        \node (pro3) [process, below of=pro2] {Fitness et sélection};
        \node (pro4) [process, below of=pro3] {Croisement};
        \node (pro5) [process, below of=pro4] {Mutation};
        \node (pro6) [process, below of=pro5] {Nouvelle génération};
        \node (dec1) [decision, below of=pro6] {Terminer?};
        \node (end) [startstop, below of=dec1] {Résultats};
        \draw [arrow] (start) -- (pro1);
        \draw [arrow] (pro1) -- (pro2);
        \draw [arrow] (pro2) -- (pro3);
        \draw [arrow] (pro3) -- (pro4);
        \draw [arrow] (pro4) -- (pro5);
        \draw [arrow] (pro5) -- (pro6);
        \draw [arrow] (pro6) -- (dec1);
        \draw [arrow] (dec1) -- node [anchor=west] {Oui}(end);
        \draw [arrow] (dec1.west) |- node [anchor=west] {Non} (pro2);
    \end{tikzpicture}
    \caption{Algorithme génétique simple.}
\end{figure}

相关内容