GraphicalModel::getFunction

addFunctionWithRefReturn is now obsolete