Graph recognition backend