[Olena-patches] 3763: Add adjacency matrix.