p-Cohesion - Graph Algorithms