// Whether the first element is a self-loop — an edge whose source and target are the same node
ele.isLoop(): booleanWhether the first element is a self-loop — an edge whose source and target are the same node.
Returns
booleantrue for a loop edge; false for nodes and removed elements