How to convert a 2D float array to a simple graph

Topics: algorithm, graph
Mar 25, 2015 at 1:50 PM
I stored my graph in form of a 2D float array (i.e. float[ , ] myGraph). I want apply Shortest Path, but need to firstly convert float[ , ] to a QuickGraph.

Note: float[ i , j ] is the distance between node i and node j. If there is no direct path between each node it is shown by float.PosetiveInfinity.