Added variable to toggle use of edge attributes in calculated edge distance matrix. Code is gross. Needs to be refactored.