introduce the unique edges combination check
Signed-off-by:Syed Asad Rahman <s9asad@gmail.com>