simple dot detection looking for loops in edges