Table of Contents

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

Dictionary<string, object>

Name

Gets or initializes the unique name of the graph.

public required string Name { get; init; }

Property Value

string

Nodes

Gets or initializes the list of nodes in the graph.

public required IReadOnlyList<OpenCLCommandGraph.Node> Nodes { get; init; }

Property Value

IReadOnlyList<OpenCLCommandGraph.Node>

OptimizationCount

Gets or sets the number of optimizations applied to this graph.

public int OptimizationCount { get; set; }

Property Value

int

Methods

Clone(string)

Clones the graph structure with a new name.

public Graph Clone(string newName)

Parameters

newName string

The name for the cloned graph.

Returns

Graph

A new graph instance with cloned structure.