Adaptive GNN for Image Analysis and Editing