added methods to GraphWriter and GraphReader. Also renamed the methods to be writeXXX and readXXX -- inputXXX and outputXXX are confusing (input into the graph or input to a file from the graph).