ComputeGraph
Interface for managing a computational graph with nodes and edges. This represents the core data structure for graph-based model execution.
Inheritors
Properties
Functions
Link copied to clipboard
Creates a copy of this graph
Link copied to clipboard
Gets all input nodes (nodes with no incoming edges)
Gets nodes that are inputs to the given node
Link copied to clipboard
Gets all output nodes (nodes with no outgoing edges)
Gets nodes that receive output from the given node
Link copied to clipboard
Returns nodes in topological order for execution
Link copied to clipboard
Removes an edge from the graph
Link copied to clipboard
Removes a node and all connected edges from the graph
Link copied to clipboard
Convenience extension to get Graphviz DOT text directly from a ComputeGraph.
Link copied to clipboard
Validates the graph structure (checks for cycles, etc.)