Minor restructure to save constructing a new graph if reverse graph is passed an invalid node