You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// @brief Build the graph's adjacency matrix and computes max capacity
111
111
/// @details The adjacency matrix is built using the graph's streets and nodes. N.B.: The street ids
112
112
/// are reassigned using the max node id, i.e. newStreetId = srcId * n + dstId, where n is the max node id.
113
+
/// Moreover, street angles and geometries are set using the nodes' coordinates.
113
114
voidbuildAdj();
114
-
/// @brief Build the graph's street angles using the node's coordinates
115
-
voidbuildStreetAngles();
116
115
/// @brief Adjust the nodes' transport capacity
117
116
/// @details The nodes' capacity is adjusted using the graph's streets transport capacity, which may vary basing on the number of lanes. The node capacity will be set to the sum of the incoming streets' transport capacity.
118
117
voidadjustNodeCapacities();
@@ -144,14 +143,19 @@ namespace dsm {
144
143
/// @throws std::invalid_argument if the file is not found, invalid or the format is not supported
145
144
voidimportOSMEdges(const std::string& fileName);
146
145
146
+
/// @brief Export the graph's nodes to a csv-like file separated with ';'
147
+
/// @param path The path to the file to export the nodes to
148
+
/// @details The file format is csv-like, with the first line being the column names: id;lon;lat
149
+
voidexportNodes(const std::string& fileName);
150
+
/// @brief Export the graph's edges to a csv-like file separated with ';'
151
+
/// @param path The path to the file to export the edges to
152
+
/// @details The file format is csv-like, with the first line being the column names: id;source_id;target_id;name;geometry
153
+
voidexportEdges(const std::string& fileName);
147
154
/// @brief Export the graph's adjacency matrix to a file
148
155
/// @param path The path to the file to export the adjacency matrix to (default: ./matrix.dsm)
149
156
/// @param isAdj A boolean value indicating if the file contains the adjacency matrix or the distance matrix.
150
157
/// @throws std::invalid_argument if the file is not found or invalid
0 commit comments