Graph drawing from array woes. (SOLVED)

Well then, I am out of ideas.