allowGraphs property

bool allowGraphs
final

If true, the tree will allow graphs. This means that each node in the tree is a global "key" (not a local node key), allowing multiple references to the same node.

Cases:

  • If your tree is like a file directory, you don't want to have files with the same name but in different directories to be treated as the same node (allowGraphs = false).
  • If your tree is like an import graph, every node with value x should be treated as the same Node (allowGraphs = true).

Implementation

final bool allowGraphs;