fix bug in build_adj.m; doesn't change results