Driver Code
public static void Main ( String [ ] args ) { int [ , ] G = { { 0 , 1 , 0 , 1 } , { 1 , 0 , 1 , 0 } , { 0 , 1 , 0 , 1 } , { 1 , 0 , 1 , 0 } } ; if ( isBipartite ( G ) ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }