Undirected weighted graph matrix

I do not really need help with programming, i more like need some test data which i can't seem to find. I just finished my homework, which was finding the minimum spanning tree in a graph. The input data is matrix, which looks something like this : { { 0, 2, 0, 6, 0 },
{ 2, 0, 3, 8, 5 },
{ 0, 3, 0, 0, 7 },
{ 6, 8, 0, 0, 9 },
{ 0, 5, 7, 9, 0 },
};

Are there any generators out there, or can anyone provide me with some large (20 x 20 up to something like 500 x 500) matrix, that actualy represents graph? I really need those for testing. Thank you.
Topic archived. No new replies allowed.