There are five vertices, so V = [P1,P2,P3,P4,P5] There are six edges and thus six pairs of vertices; hence E = [{P1, P4},{P2,P3}, {P2,P4}, {P2,P5}, {P4,P5}, {P3,P5}]
There are five vertices, so V = [P1,P2,P3,P4,P5] There are six edges and thus six pairs of vertices; hence E = [{P1, P4},{P2,P3}, {P2,P4}, {P2,P5}, {P4,P5}, {P3,P5}]