Create a graph given in the above diagram
k = 3 ; NEW_LINE g1 = Graph ( 9 ) ; NEW_LINE g1 . addEdge ( 0 , 1 ) NEW_LINE g1 . addEdge ( 0 , 2 ) NEW_LINE g1 . addEdge ( 1 , 2 ) NEW_LINE g1 . addEdge ( 1 , 5 ) NEW_LINE g1 . addEdge ( 2 , 3 ) NEW_LINE g1 . addEdge ( 2 , 4 ) NEW_LINE g1 . addEdge ( 2 , 5 ) NEW_LINE g1 . addEdge ( 2 , 6 ) NEW_LINE g1 . addEdge ( 3 , 4 ) NEW_LINE g1 . addEdge ( 3 , 6 ) NEW_LINE g1 . addEdge ( 3 , 7 ) NEW_LINE g1 . addEdge ( 4 , 6 ) NEW_LINE g1 . addEdge ( 4 , 7 ) NEW_LINE g1 . addEdge ( 5 , 6 ) NEW_LINE g1 . addEdge ( 5 , 8 ) NEW_LINE g1 . addEdge ( 6 , 7 ) NEW_LINE g1 . addEdge ( 6 , 8 ) NEW_LINE g1 . printKCores ( k ) NEW_LINE g2 = Graph ( 13 ) ; NEW_LINE g2 . addEdge ( 0 , 1 ) NEW_LINE g2 . addEdge ( 0 , 2 ) NEW_LINE g2 . addEdge ( 0 , 3 ) NEW_LINE g2 . addEdge ( 1 , 4 ) NEW_LINE g2 . addEdge ( 1 , 5 ) NEW_LINE g2 . addEdge ( 1 , 6 ) NEW_LINE g2 . addEdge ( 2 , 7 ) NEW_LINE g2 . addEdge ( 2 , 8 ) NEW_LINE g2 . addEdge ( 2 , 9 ) NEW_LINE g2 . addEdge ( 3 , 10 ) NEW_LINE g2 . addEdge ( 3 , 11 ) NEW_LINE g2 . addEdge ( 3 , 12 ) NEW_LINE g2 . printKCores ( k ) NEW_LINE