faster find edges