Graph-based Retrieval Augmented Generation for Dynamic Few-shot Text Classification