creating some random matrices and graphs.  Implementation of modified Dijkstra's algorithm