Add Graph class; read in graph files and store in edge array

readGraph implementation from https://code.google.com/p/preach2014