center_graph function

Center adjacency matrix