Driver program to test above function
public static void main ( String [ ] args ) { int G [ ] [ ] = { { 0 , 1 , 1 , 1 , 0 } , { 1 , 0 , 1 , 0 , 0 } , { 1 , 1 , 0 , 0 , 0 } , { 0 , 1 , 0 , 0 , 1 } , { 0 , 0 , 0 , 1 , 0 } } ; if ( canBeDividedinTwoCliques ( G ) ) System . out . println ( " Yes " ) ; else System . out . println ( " No " ) ; } }