hasLink method

bool hasLink(
  1. dynamic a,
  2. dynamic b, {
  3. List anyTags = const [],
  4. List allTags = const [],
})
override

Determine if there is an link between 2 nodes, No matter what direction

(Optional) Only if it matches any of anyTags and matches all items in allTags

Implementation

bool hasLink(a, b, {List anyTags = const [], List allTags = const []}) {
  return _Tuple2(a, b)
      .map((v) => _map_add_or_get(v, _newNode))
      .mutual((f, t) => _check_hasTo_and_all_any_tags(f, t,
          anyTags: anyTags, allTags: allTags))
      .toDo(_or);
}