Class Graph
- Namespace
- DotCompute.Backends.OpenCL.Execution
- Assembly
- DotCompute.Backends.OpenCL.dll
Represents a complete command graph with nodes and dependencies.
public sealed class Graph
- Inheritance
-
Graph
- Inherited Members
Properties
Metadata
Gets or initializes optional metadata for the graph.
public Dictionary<string, object>? Metadata { get; init; }
Property Value
Name
Gets or initializes the unique name of the graph.
public required string Name { get; init; }
Property Value
Nodes
Gets or initializes the list of nodes in the graph.
public required IReadOnlyList<OpenCLCommandGraph.Node> Nodes { get; init; }
Property Value
OptimizationCount
Gets or sets the number of optimizations applied to this graph.
public int OptimizationCount { get; set; }
Property Value
Methods
Clone(string)
Clones the graph structure with a new name.
public Graph Clone(string newName)
Parameters
newNamestringThe name for the cloned graph.
Returns
- Graph
A new graph instance with cloned structure.