Determine if the given undirected graph is regular. Graph is called regular, if all its vertices have the same degree. I
Posted: Sat Jul 09, 2022 11:47 am
Determine if the given undirected graph is regular. Graph is called regular, if all its vertices have the same degree. Input First line contains number of vertices n. Next n lines describe adjacency matrix. Output Choose true if graph is regular and false if not regular. Sample input 4 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 Sample output true