generate adjacency matrix; matrix printing