Build adjacent map