Represent Graph as a 2d Matrix
<p>Lets say I have a graph of x nodes. I want to first represent it and then with help of a Algorithm Y, I would assign value to each of the node. Then I want to refresh the graph to display the value calculated.</p>

<p>Steps
1) Represent the graph as 2d Matrix. Perform processing over the 2d Matrix and then use the result to generate a new graph. [Better than doing processing by iterating the graph]</p>

<p><strong>Problems</strong>:</p>

<p>1) I need to create a 2d Array with indexes as node names i.e string. I am not sure what's the best way to do this?</p>

<p>2) What's the best graph api which can A) produce good looking results 2) user friendly 3) allows vertex names as strings </p>

<p>I hope I made myself clear. Any input would be of immense help.</p>

<p>Thanks
Sunil</p>
