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

Function NewBranchingNode

go/engine/node.go:130–132  ·  view source on GitHub ↗

NewBranchingNode creates a new BranchingNode

(id string)

Source from the content-addressed store, hash-verified

128
129// NewBranchingNode creates a new BranchingNode
130func NewBranchingNode(id string) BranchingNode {
131 return BranchingNode{id: id, transitions: make(map[string][]Transition)}
132}
133
134func (b *BranchingNode) ID() string { return b.id }
135func (b *BranchingNode) AddTransition(port string, tr Transition) error {

Callers 1

TestBranchingNodeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBranchingNodeFunction · 0.68