Changed the spanning tree logic to use ALGraph. Made a couple changes to ALGraph in the process.