extern "C" int gcoSetSiteDataCost(int handle, SiteID site, LabelID label, EnergyTermType e) { GCoptimization *gco = findInstance(handle); gco->setDataCost(site, label, e); return 0; }
extern "C" int gcoSetDataCost(int handle, EnergyTermType *unary) { GCoptimization *gco = findInstance(handle); gco->setDataCost(unary); return 0; }