link.hasLoop([opt])
Return true
if this link is a loop link
. In a loop link
source
and target
are equal. If opt.deep
is true
,
the notion of a loop link
is extended to a deep hierarchy. For example,
if the link connects a parent element with one of its embedded elements, than the
link is considered a loop link
too.