Graph clustering codes for deciding baseband processing function placement in cloud-based radio access network (CRAN)