[Olena-patches] [PATCH 02/31] Add adjacency matrix.