output graph to current working dir