addInput method

  1. @override
Node<T>? addInput(
  1. T nodeValue
)
override

Adds a Node to the graph. Alias to node.

Implementation

@override
Node<T>? addInput(T nodeValue) {
  if (!_allNodes.containsKey(nodeValue)) {
    return node(nodeValue);
  }
  return null;
}