FIX in graph crf for refactoring