MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / NewLinearNode

Function NewLinearNode

go/engine/node.go:95–97  ·  view source on GitHub ↗

NewLinearNode creates a new LinearNode

(id string)

Source from the content-addressed store, hash-verified

93
94// NewLinearNode creates a new LinearNode
95func NewLinearNode(id string) LinearNode {
96 return LinearNode{id: id, transitions: make(map[string]Transition)}
97}
98
99func (b *LinearNode) ID() string { return b.id }
100func (b *LinearNode) AddTransition(port string, tr Transition) error {

Callers 2

TestLinearNode_NextFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestLinearNode_NextFunction · 0.68