1
Vote

Improvement: CancelLayout should abort the layout computation

description

Improvement

GraphLayout.CancelLayout() should call LayoutAlgorithm.Abort().

Rationale

Currently, calling CancelLayout() doesn't do anything when the layout is being computed asynchronously. A portion of execution time in GraphLayout.Layout(bool) is spent on argument.algorithm.Compute(); (~line 266). Calling LayoutAlgorithm.Abort() will allows us to break out of that step.

Note

I intend to fork and implement this feature myself but I created this issue in case someone else can get to it before me.

comments