[Olena-patches] 2949: Fix line_graph (formerly dual_graph)