isInputInShortestPathToRoot method

bool isInputInShortestPathToRoot(
  1. Node target
)

Returns true if target is an input in the shortestPathToRoot.

Implementation

bool isInputInShortestPathToRoot(Node target) =>
    shortestPathToRoot.contains(target);