Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[tikz]{standalone}
- usetikzlibrary{shapes,arrows,calc,decorations.markings}
- tikzset{
- startstop/.style={ellipse, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30},
- io/.style={trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=blue!30},
- process/.style = {rectangle, minimum width=4cm, minimum height=1cm, text centered,text width=3cm, draw=black, fill=orange!30},
- decision/.style = {diamond, minimum width=1.5cm, minimum height=0.5cm, text centered,text width=1.5cm,draw=black, fill=green!30},
- arrow/.style= {thick,>=stealth,postaction=decorate,decoration={markings,mark=at position 0.5 with {arrow{>}}}},
- line/.style={thick,>=stealth,postaction=decorate,decoration={markings,mark=at position 0.5 with {arrow{>}}}}}
- begin{document}
- begin{tikzpicture}[node distance=2.5cm,scale=0.75,transform shape,font=normalsize]
- node (start) [startstop] {Start};
- node (pro1) [process, below of=start] {AAA};
- node (pro2) [process, below of=pro1] {BBB};
- node (pro3) [process, below of=pro2] {CCC};
- node (pro4) [process, below of=pro3,xshift=-2.25cm] {DDD};
- node (pro4c) [process, left of=pro4,xshift=-2.5cm] {EEE};
- node (pro4a) [process, below of=pro3,xshift=2.25cm] {FFF};
- node (pro4b) [process, right of=pro4a,xshift=2.5cm] {GGG};
- coordinate (center) at ($(pro4)!.5!(pro4a)$);
- node (pro5) [process, below of=center] {HHH};
- node (pro6) [process, below of=pro5] {III};
- node (pro7) [process, below of=pro6] {JJJ};
- node (pro8) [process, below of=pro7] {KKK};
- node (pro9) [process, below of=pro8] {LLL};
- node (dec1) [decision, below of=pro9,yshift=-1cm] {MMM};
- node (pro10) [process, right of=pro3,xshift=2.5cm] {NNN};
- node (stop)[startstop, below of=dec1,yshift=-1cm] {stop};
- draw [arrow] (start) -- (pro1);
- draw [arrow] (pro1) -- (pro2);
- draw [arrow] (pro2) -- (pro3);
- %draw [arrow] (pro3) -- (pro4);
- %draw [arrow] (pro3) -- (pro4a);
- draw [arrow] (pro4c) -- (pro4);
- draw [arrow] (pro4b) -- (pro4a);
- %draw [arrow] (pro4) -- (pro5);
- %draw [arrow] (pro4a) -- (pro5);
- draw [arrow] (pro5) -- (pro6);
- draw [arrow] (pro6) -- (pro7);
- draw [arrow] (pro7) -- (pro8);
- draw [arrow] (pro8) -- (pro9);
- draw [arrow] (pro9) -- (dec1);
- draw [arrow] (dec1) -- node[anchor=east] {YES}(stop);
- draw [arrow] (dec1) -- ($(dec1)+(10,0)$) coordinate (x);
- draw [arrow] (x)--(x|-pro10) node[midway,right] {NO}--(pro10);
- draw [arrow] (pro10) -- (pro3);
- draw [arrow] ([xshift=-1cm]pro3.south) coordinate (x) -- (x |- pro4.north);
- draw [arrow] ([xshift=1cm]pro3.south) coordinate (y) -- (y |- pro4a.north);
- coordinate (aux) at ([xshift=-1cm,yshift=0.8cm]pro5.north);
- draw (pro4.south -| aux) -- (aux);
- draw [arrow] (aux) -- (aux -| pro5.north);
- coordinate (aux) at ([xshift=1cm,yshift=0.8cm]pro5.north);
- draw (pro4a.south -| aux) -- (aux);
- draw [arrow] (aux) -- (aux -| pro5.north);
- draw [arrow] (aux -| pro5.north) -- (pro5.north);
- end{tikzpicture}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement