Add the GraphOutput class, based on the same model as GraphInput.