Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 1 KB

File metadata and controls

29 lines (20 loc) · 1 KB

Home > @datashaper/workflow > Graph

Graph interface

Signature:

export interface Graph<T> 

Properties

Property Modifiers Type Description
nodes readonly NodeId[]

Methods

Method Description
add(node) Add a node to the graph
clear() Clears out the graph of all nodes, inputs, and outputs
hasNode(id) Determines if the graph contains a node by id
node(id) Retrieves a node by id.
remove(id) Remove a node from the graph
validate() Verify that the graph is a valid dag (no cycles)