up to 1mln edges