SMS: Graph partitioning