It's my fourth homework to ergodic a graph by input it's adjacent matrix