corrected typos (prints commented out)
fixing small things
getting there
seems to be working
changed while condition for spanningtree algo
same results as Hamza