graph partition

Hi there,

Does anyone know a simple cuda program that can participate a graph into K(say 512) subgraphs having approximately the same size?

Thanks,
Bo