extern "C" int gcoGetLabels(int handle, LabelID *labels) { GCoptimization *gco = findInstance(handle); gco->whatLabel(0, gco->numSites(), labels); return 0; }
extern "C" int gcoGetLabelAtSite(int handle, SiteID site, LabelID *label) { GCoptimization *gco = findInstance(handle); *label = gco->whatLabel(site); return 0; }