GAP: Generalizable Approximate Graph Partitioning Framework