Shitty minimum span tree implemented. Cant handle directed graph parts.