{[1,2],[1,3],[1,4],[2,5],[2,6],[6,4],[3,5],[4,2],[7,5],[8,5],[8,9],
 [10,8],[9,10]}

{2,10}

