Class TopoGraph
Provides static methods and nested types for creating topologically sortable graph nodes.
Inheritance
object
Namespace: Umbraco.Cms.Core.Collections
Assembly: Umbraco.Core.dll
Syntax
public class TopoGraph
Constructors
View SourceTopoGraph()
Declaration
public TopoGraph()
Methods
View SourceCreateNode<TKey, TItem>(TKey, TItem, IEnumerable<TKey>)
Creates a new graph node with the specified key, item, and dependencies.
Declaration
public static TopoGraph.Node<TKey, TItem> CreateNode<TKey, TItem>(TKey key, TItem item, IEnumerable<TKey> dependencies)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key that uniquely identifies the node. |
| TItem | item | The item stored in the node. |
| IEnumerable<TKey> | dependencies | The keys of nodes that this node depends on. |
Returns
| Type | Description |
|---|---|
| TopoGraph.Node<TKey, TItem> | A new TopoGraph.Node<TKey, TItem> instance. |
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the key. |
| TItem | The type of the item. |