FlowchartLayout can be used to arrange flowcharts representing program source code.
Namespace: MindFusion.Graphs
Package: FlowchartLayout.js
JavaScript Copy Code |
---|
// class |
The algorithm recognizes program code -like patterns in the graph, such as loops, sequences and if/switch branchings, and arranges them recursively. FlowchartLayout could be used to arrange other types of graphs as well, though with some restrictions. For example it treats all back links as loops in the code, and expects that they are nested - loop links starting closer to the stop node should end closer to the start node. Another similar restriction is that there shouldn't be any cross-links that connect different branches of a decision sub-graph.
MindFusion.Graphs.Layout
MindFusion.Graphs.FlowchartLayout