Create Tree.py

Given a number of total nodes and a adjacency list (in pairs) it will assemble a list of all connected nodes and then return the number of edges required to create a tree with no cycles