What is the purpose of p-graph?