Gets all nodes in the graph as a map (package-private).
This is primarily for internal use by the editor widget.
Map<String, Node<T>> get nodes => _nodes;