Class FlowModelExtensions
Flow model extension methods.
Inherited Members
Namespace: DNVGL.One.Compute.Scheduling.Extensions
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public static class FlowModelExtensions
Methods
View SourceGetTopologicalSorting(FlowGraph)
Gets the topological sorting.
Declaration
public static IEnumerable<WorkUnit> GetTopologicalSorting(this FlowGraph graph)
Parameters
Type | Name | Description |
---|---|---|
FlowGraph | graph | The graph. |
Returns
Type | Description |
---|---|
IEnumerable<WorkUnit> | The work units of the graph sorted topologically. |
Remarks
Implements Kahn's algorithm, http://en.wikipedia.org/wiki/Topological_sorting.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The FlowGraph has at least one cycle. |