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

Latest commit

 

History

History
31 lines (22 loc) · 1.3 KB

File metadata and controls

31 lines (22 loc) · 1.3 KB

Home > @datashaper/workflow > DefaultGraph

DefaultGraph class

Signature:

export declare class DefaultGraph<T> implements Graph<T> 

Implements: Graph<T>

Properties

Property Modifiers Type Description
nodes readonly NodeId[] Get a list of NodeIDs

Methods

Method Modifiers Description
add(node) Add a node to the graph
clear() Clear the graph and remove all nodes
hasNode(id) Check if the graph has a node with the given ID
node(id) Get a node by id
printStats() Print per-node stats of the graph
remove(removeId) Remove a node by ID from the graph
validate() Validate the graph, checking for any cycles