improved rendering of adjacency matrix