[Olena-patches] 2885: Introduce a dual graph class.