@@ -264,10 +264,12 @@ PYBIND11_MODULE(dsf_cpp, m) {
264264 " Args:\n "
265265 " sourceId (int): The id of the source node\n "
266266 " targetId (int): The id of the target node\n "
267- " weightFunction (PathWeight): The weight function to use (LENGTH, TRAVELTIME, or WEIGHT)\n "
267+ " weightFunction (PathWeight): The weight function to use (LENGTH, "
268+ " TRAVELTIME, or WEIGHT)\n "
268269 " threshold (float): A threshold value to consider alternative paths\n\n "
269270 " Returns:\n "
270- " PathCollection: A map where each key is a node id and the value is a vector of next hop node ids toward the target" );
271+ " PathCollection: A map where each key is a node id and the value is a "
272+ " vector of next hop node ids toward the target" );
271273
272274 pybind11::class_<dsf::mobility::PathCollection>(mobility, " PathCollection" )
273275 .def (pybind11::init<>(), " Create an empty PathCollection" )
@@ -284,9 +286,9 @@ PYBIND11_MODULE(dsf_cpp, m) {
284286 " Get the next hops for a given node id" )
285287 .def (
286288 " __setitem__" ,
287- [](dsf::mobility::PathCollection& self, dsf::Id key, std::vector<dsf::Id> value) {
288- self[key] = value;
289- },
289+ [](dsf::mobility::PathCollection& self,
290+ dsf::Id key,
291+ std::vector<dsf::Id> value) { self[key] = value; },
290292 pybind11::arg (" key" ),
291293 pybind11::arg (" value" ),
292294 " Set the next hops for a given node id" )
@@ -322,12 +324,11 @@ PYBIND11_MODULE(dsf_cpp, m) {
322324 return items;
323325 },
324326 " Get all items (node id, next hops) in the collection" )
325- .def (
326- " explode" ,
327- &dsf::mobility::PathCollection::explode,
328- pybind11::arg (" sourceId" ),
329- pybind11::arg (" targetId" ),
330- dsf::g_docstrings.at (" dsf::mobility::PathCollection::explode" ).c_str ());
327+ .def (" explode" ,
328+ &dsf::mobility::PathCollection::explode,
329+ pybind11::arg (" sourceId" ),
330+ pybind11::arg (" targetId" ),
331+ dsf::g_docstrings.at (" dsf::mobility::PathCollection::explode" ).c_str ());
331332
332333 pybind11::class_<dsf::mobility::Itinerary>(mobility, " Itinerary" )
333334 .def (pybind11::init<dsf::Id, dsf::Id>(),
0 commit comments