Node<T>.root constructor

Node<T>.root(
  1. T value, {
  2. Graph<T>? graph,
})

Implementation

Node.root(this.value, {Graph<T>? graph})
    : _graph = graph,
      _inputs = List.unmodifiable([]) {
  _shortestPathToRoot = UnmodifiableListView([]);
}