What type of layout to use for a flow chart

Previously have created an organizational chart using GoDiagram. I use XML data to populate a goDocument, and then apply a GoLayoutTree layout, and everything works beatifully.

My question is, if I want to use the same technique to create flowcharts, instead of org charts, what type of Layout do I use?

(The samples I have seen all have the user creating the flowchart by drag-and-drop, etc. I want the software to create the flowchart from xml data.)

Thanks in advance for your advice.

I would try using GoLayoutLayeredDigraph. Flowgrammer does this.

However there will be some situations where the results will be non-optimal, by the standards of most programmers, and I don't think there will be an easy solution for that.

Thanks for your response, as always.
GoLayoutLayeredDigraph is the layout I am working with. I will keep playing with it. The Flows I am trying to represent should not be too complicated so, maybe I can get it to work sufficiently well.
Thanks again for your response.