Faster implementation of B(edges with loop) list.