From ba7e4ee34e7e278415e7371f8b98834e181c2fd4 Mon Sep 17 00:00:00 2001 From: Akshat Pandya Date: Thu, 23 Dec 2021 21:34:13 -0800 Subject: [PATCH] Making APIs consistent for graph/Edge fix #301 Signed-off-by: Akshat Pandya --- include/ignition/math/graph/Edge.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ignition/math/graph/Edge.hh b/include/ignition/math/graph/Edge.hh index b417a9a13..94897567a 100644 --- a/include/ignition/math/graph/Edge.hh +++ b/include/ignition/math/graph/Edge.hh @@ -130,7 +130,7 @@ namespace graph /// \brief Set the cost of the edge. /// \param[in] _newWeight The new cost. - public: void SetWeight(const double _newWeight) + public: void SetWeight(double _newWeight) { this->weight = _newWeight; } @@ -214,7 +214,7 @@ namespace graph /// \param[in] _id Optional unique id. public: explicit UndirectedEdge(const VertexId_P &_vertices, const E &_data, - const double _weight, + double _weight, const EdgeId &_id = kNullId) : Edge(_vertices, _data, _weight, _id) { @@ -277,7 +277,7 @@ namespace graph /// \param[in] _id Optional unique id. public: explicit DirectedEdge(const VertexId_P &_vertices, const E &_data, - const double _weight, + double _weight, const EdgeId &_id = kNullId) : Edge(_vertices, _data, _weight, _id) {