more graph algo updates. going to wait to to cycle detection until i have an mast algorithm working.