Show / Hide Table of Contents

Class FlowModelExtensions

Flow model extension methods.

Inheritance
object
FlowModelExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DNVGL.One.Compute.Scheduling.Extensions
Assembly: DNVGL.One.Compute.Scheduling.dll
Syntax
public static class FlowModelExtensions

Methods

View Source

GetTopologicalSorting(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.

  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.