outputsInDepthIntersection method

List<Node<T>> outputsInDepthIntersection(
  1. Node<T>? other
)

Implementation

List<Node<T>> outputsInDepthIntersection(Node<T>? other) {
  var l2 = other?.outputsInDepth();
  if (l2 == null || l2.isEmpty) return [];

  var l1 = outputsInDepth();
  return l1.intersection(l2);
}