adj matrix compiled