Fit two graphs simultaneously

I would like to fit two graphs as done in the example combinedFit.C. Can I simply substitute graphs for histograms there?

use a TMultiGraph. see tutorials

Rene