adjacency matrix graph class
adjacency matrix graph class