ENH: return adjacency matrix too