Graph recognition frontend