fixing instructions to newer way of passing adjacency matrix