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