class BaseNode { constructor(name, graph) { this.name = name; this.graph = graph; } evaluate(input) { throw new Error('evaluate() must be implemented by subclass'); } } module.exports = BaseNode;