Gravar-mail: Network partitioning algorithms as cooperative games