Application-driven graph partitioning