File size: 388 Bytes
6380833 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | package treex
import "errors"
var (
ErrRootNodeIsNil = errors.New("root node cannot be nil")
ErrGraphHasCycle = errors.New("graph cannot contain cycles")
ErrNodeHasNoParentButNotRoot = errors.New("node has no parent but is not the root")
// catch-all error for invalid nodes or graph structure
ErrNodeGraphInvalid = errors.New("invalid graph structure")
)
|