Brovuka's algorithm

i am trying to implement brovukas algorithm to find the minimum spanning tree of a graph but my program crashes in the find function when i run it

http://pastebin.com/pJa2QRDr

sample input
http://postimg.org/image/h805lhyjz/

can someone please help me
That kind of error is usually caused by stepping out of bounds of an array. Make sure you are always in bounds of your arrays, always. Then make double sure of it.
Topic archived. No new replies allowed.