Add euler cycle detector