loops#

loops(k)#

Return a set of loops of k. A loop is an arc that connects the node to itself, but the node is not a crossing. See also kinks(). :param k: the planar diagram :return: set of arcs that are loops