Fixed bug in encoder/graph.R NA at end of file