Made the candidates graph work