47 std::vector< Line_graph_rt > edge_result,
50 (*return_tuples) =
pgr_alloc(edge_result.size(), (*return_tuples));
52 for (
const auto &
edge : edge_result) {
69 std::ostringstream log;
70 std::ostringstream err;
71 std::ostringstream notice;
85 log << digraph <<
"\n";
90 std::vector< Line_graph_rt > line_graph_edges;
91 line_graph_edges = line.get_postgres_results_directed();
92 auto count = line_graph_edges.size();
95 (*return_tuples) = NULL;
98 "Only vertices graph";
106 (*return_count) = sequence;
110 *log_msg = log.str().empty()?
113 *notice_msg = notice.str().empty()?
117 (*return_tuples) =
pgr_free(*return_tuples);
119 err << except.
what();
120 *err_msg =
pgr_msg(err.str().c_str());
121 *log_msg =
pgr_msg(log.str().c_str());
122 }
catch (std::exception &except) {
123 (*return_tuples) =
pgr_free(*return_tuples);
125 err << except.what();
126 *err_msg =
pgr_msg(err.str().c_str());
127 *log_msg =
pgr_msg(log.str().c_str());
129 (*return_tuples) =
pgr_free(*return_tuples);
131 err <<
"Caught unknown exception!";
132 *err_msg =
pgr_msg(err.str().c_str());
133 *log_msg =
pgr_msg(log.str().c_str());