``layout`` starts rendering a graph for display. Once a layout is complete, each node will contain coordinates and extents that can be used to render a graph with minimum additional computation. This function does not wait for the graph to be ready to display, but a callback can be provided
(self, callback=None)
| 771 | self.set_option(FlowGraphOption.FlowGraphIsWorkflowGraph, value) |
| 772 | |
| 773 | def layout(self, callback=None): |
| 774 | """ |
| 775 | ``layout`` starts rendering a graph for display. Once a layout is complete, each node will contain |
| 776 | coordinates and extents that can be used to render a graph with minimum additional computation. |
| 777 | This function does not wait for the graph to be ready to display, but a callback can be provided |
| 778 | to signal when the graph is ready. |
| 779 | |
| 780 | :param callback callback: Function to be called when the graph is ready to display |
| 781 | :return: Pending flow graph layout request object |
| 782 | :rtype: FlowGraphLayoutRequest |
| 783 | """ |
| 784 | return FlowGraphLayoutRequest(self, callback) |
| 785 | |
| 786 | def _wait_complete(self): |
| 787 | self._wait_cond.release() |
no test coverage detected