counter: Introduce option to ignore edges