# graphExecutionPlan

A graph execution plan record carrying name, model, cachePolicy, fallbackPolicy, schedulerRule, and related state.

Last updated: 2026-09-09

Package: compute.graph | Status: source-declared

Tags: compute, compute.graph, cpu, graph, method, source-example, thing, yeho

Describe compute work as an explicit graph with package-owned validation and scheduling metadata.

```yh
external thing graphExecutionPlan
```

- text name: Stores name as text.
- graphModel model: Stores model as graphModel.
- graphCachePolicy cachePolicy: Stores cache policy as graphCachePolicy.
- graphFallbackPolicy fallbackPolicy: Stores fallback policy as graphFallbackPolicy.
- graphSchedulerRule schedulerRule: Stores scheduler rule as graphSchedulerRule.
- text note: Stores note as text.
- graphExecutionPlan(text name, graphModel model, graphCachePolicy cachePolicy, graphFallbackPolicy fallbackPolicy, graphSchedulerRule schedulerRule, text note): Graph execution plan.
- NodeCount() returns int: Node count.
- EdgeCount() returns int: Edge count.
- CacheableNodeCount() returns int: Cacheable node count.
- FallbackNodeCount() returns int: Fallback node count.
- FusionOpportunityCount() returns int: Fusion opportunity count.
- CanReuseCache() returns bool: Can reuse cache.
- HasFallback() returns bool: Has fallback.
- Describe() returns text: Describe.

## Use graphExecutionPlan

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using compute.graph

// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.
graphExecutionPlan sample = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
Console.Log(Text.From(sample.name))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.NodeCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Node count.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
int result = instance.NodeCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-NodeCount-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.EdgeCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Edge count.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
int result = instance.EdgeCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-EdgeCount-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.CacheableNodeCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Cacheable node count.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
int result = instance.CacheableNodeCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-CacheableNodeCount-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.FallbackNodeCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Fallback node count.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
int result = instance.FallbackNodeCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-FallbackNodeCount-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.FusionOpportunityCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Fusion opportunity count.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
int result = instance.FusionOpportunityCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-FusionOpportunityCount-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.CanReuseCache

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Can reuse cache.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
bool result = instance.CanReuseCache()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-CanReuseCache-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.HasFallback

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Has fallback.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
bool result = instance.HasFallback()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-HasFallback-13 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## graphExecutionPlan.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.graph

// Describe.
graphExecutionPlan instance = graphExecutionPlan("Nova", graphModel("Nova", "model Kind", [], [], "note"), graphCachePolicy("key", "scope", true, true, "note"), graphFallbackPolicy("primary Path", "fallback Path", "reason", true, true, "note"), graphSchedulerRule("Nova", "path Order", "fusion Rule", "cache Rule", "note"), "note")
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_graph__graphexecutionplan"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.buffer"
version = "0.1.0"
path = "../../../yeho/packages/compute/buffer"

[[dependencies]]
package = "compute.device"
version = "0.1.0"
path = "../../../yeho/packages/compute/device"

[[dependencies]]
package = "compute.graph"
version = "0.1.0"
path = "../../../yeho/packages/compute/graph"

[[dependencies]]
package = "compute.kernels"
version = "0.1.0"
path = "../../../yeho/packages/compute/kernels"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.graph--graphExecutionPlan/method-Describe-14 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/compute/graph/graph.yh

AI training permission: https://demonhunterlabs.com/ai-use
