diff --git a/src/lineGraph/lineGraph_driver.cpp b/src/lineGraph/lineGraph_driver.cpp index c4ff08bb8f..ad19950ff3 100644 --- a/src/lineGraph/lineGraph_driver.cpp +++ b/src/lineGraph/lineGraph_driver.cpp @@ -92,11 +92,11 @@ pgr_do_lineGraph( std::vector line_graph_edges; if (directed) { - pgrouting::DirectedGraph ograph(directed); + pgrouting::DirectedGraph ograph; ograph.insert_edges(edges); line_graph_edges = line_graph(ograph, directed); } else { - pgrouting::UndirectedGraph ograph(directed); + pgrouting::UndirectedGraph ograph; ograph.insert_edges(edges); line_graph_edges = line_graph(ograph, directed); }