Image Retrieval Using Scene Graphs Of Functions