I’m not very familiar with PSTricks, so I used DeepSeek to help refine this flow diagram code. The solution controls connection points (using angleA/angleB) and curvature (arcangle) between nodes. I’ve adjusted it to match these requirements:
Red & Blue lines start from the right of ‘Start’ and connect to the top of ‘Middle’/‘End’
Green & Purple lines begin at the bottom of their nodes and curve to ‘Middle’s northwest side
Yellow is a straight-line version of the Red path
Hope this helps! Let me know if you’d like any adjustments.
*******************************************
It looks like you're encountering some confusion with how angleA, angleB, and arcangle work in pst-node. Let me clarify how these parameters function and adjust your code to achieve your desired connections.
angleA: Specifies the angle (in degrees) at which the line departs from the source node (0=right, 90=up, 180=left, 270=down).
angleB: Specifies the angle at which the line arrives at the destination node.
arcangle: Controls the curvature of the arc (0=straight line, positive/negative values bend the arc).
Red & Blue: Start from right of "Start" (angleA=0), go to top of "Middle"/"End" (angleB=90).
Green & Purple: Start from bottom-middle of "Start"/"End" (angleA=270), arrive at northwest of "Middle" (angleB=135).
Yellow: Same as red but straight (arcangle=0).