ENH add graph crf with edge types