def get_labels(self): """Get the full label assignment for the whole graph. Return a 1d vector of labels of length nb_sites. """ labels = np.empty(self.nb_sites, dtype=np.intc) _cgco.gcoGetLabels(self.handle, labels) return labels
def getLabels(self): """Get the full label assignment for the whole graph. Return a 1d vector of labels of length numSites. """ labels = np.empty(self.numSites, dtype=np.intc) _cgco.gcoGetLabels(self.handle, labels) return labels