Changes in p2p partitioning to support different graph api