graph retrieval according to task name