Added a routine to convert sparse graphs to dense arrays for testing & debugging purposes