Implemented function to create graph from inputs to outputs.