[Olena-patches] 2017: Fix the insertion of edges into a graph.